Ò»¸öpl/sqlÎÊÌâ - Oracle / ¿ª·¢
ÎÒÊÇÔÚtoadÖÐÊäÈë϶Îsql
declare
TYPE test_rec IS record(
code varchar(10),
name varchar(30)
);
v_book test_rec;
begin
v_book.code:='1001';
v_book.name:='java±à³Ì˼Ïë';
dbms_output.put_line(v_book.code||v_book.name);
end;
Ö´Ðкó±¨02:14:17 Error: ORA-00900: invalid SQL statement
ÓÖÁíÍâÊäÈëÁËÏÂÃæµÄÕâ¶Î declare
v_acct_id ACCOUNT.ACCT_ID%Type;
begin
SELECT ACCT_ID INTO v_acct_id from ACCOUNT WHERE ROWNUM<2;
dbms_output.put_line(v_acct_id);
end;
»¹ÊDZ¨Í¬ÑùµÄ´íÎó¡£why???ʲôµØ·½²Ù×÷´íÎóÁË£¿
»·¾³PL/SQL DEVELOP
Ææ¹Ö£¬ÎªÊ²Ã´ÎÒÔÚpl/sqlÀïÔËÐоÍûÎÊÌâ
Äã×Ðϸ¼ì²éÊÇ·ñÓÐʲôÒþ±Î×Ö·û¡£
TOADÀï¾Í±¨´íÁË£¿£¿
why???
Óï¾äûÓдíÎó
»³ÒÉÊÇtoadʹÓÃÉϵÄÎÊÌâ
ÎÒÔËÐÐÁËһϣ¬ÊǺÃÓõģ¬LZÊÇÔõôÔËÐеÄÄØ£¿Ó¦¸Ã²»ÊÇÓï¾äµÄÎÊÌâ¡£
¾Í°ÑÉÏÃæµÄÓï¾äÌùµ½¶íeditorÀïÃ棬°´Ö´Ðа¡¡£¡£¡£
TOADÀïÖ´ÐÐͨ¹ý.TOAD 8.5
ÎÒµÄÊÇToad for Oracle 9.6.1
²»»áÊÇÉèÖÃÉÏÓÐÎÊÌâ°É¡£¡£¡£
ÔÚÄÄÖ´Ðеģ¿toadÖÐÊDz»ÄÜÖ±½ÓÖ´ÐеÄ
toadÀïµÄpl/sql editor °¡
ÎÒ½øÈëtoadʱ ÓÒÏ·½ÓÐÈý¸öeditor ÆäÖÐ×îºóÒ»¸ö LDAP Editor ÊÇ»ÒÉ«µÄ¡£¡£¡£
²»ÖªµÀΪɶ£¬É¶¶¼Ã»Åª£¬¾ÍÖ±½Ó°²×°ºó¾ÍÕâÑùÁË
[code=SQL][/code]SQL> set serveroutput on;
S
Ïà¹ØÎÊ´ð£º
Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......
exp user/password@dbname file=c:\table.dmp tables=jbitaku,jbitakum grants=y
È»áá°´»Ø車鍵 說Ã÷:¡¡ user/password@dbname ¡¡·Ö別±íʾÓÃ戶Ãû£¬ÃÜ碼ºÍ·þ務Ãû f ......
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
½ñÌì×öÁËÒ»¸ö´æ´¢¹ý³Ì »·¾³ÊÇSQL2000Êý¾Ý¿â
´óÖÂÈçÏÂ
½¨Á¢ÁÙʱ±í
¶¨ÒåÔ±¹¤Óαê
Ñ»·Ô±¹¤£¨ÊôÓÚ1¸ö¹«Ë¾)
......
ÎÒÔÚ¿ª·¢µÄÕâ¸öÓ¦Óò¢·¢ÐԱȽϸߣ¬oracle¸üÐÂÊý¾ÝʱºòÈçºÎ´¦Àí²¢·¢´¦ÀíÄØ£¿¸÷λ´óÏÀ·¢±íºÃµÄ¹Ûµã°¡£¬ÔÚÏߵȴý£¡
oracleÊý¾Ý¸üÐÂʱ£¬»á×Ô¶¯Ä¬ÈÏÐÐËø¶¨£¬Â¥Ö÷²»Òª²ÙÐÄ£¬Oracle¶Ô²¢Ðд¦ÀíÒѾºÜ³ÉÊìÁË
ÒýÓÃ
oracle ......