oracle 10g pl/sql ѧϰ
Ñ¡Ôñ10gÊÇÒòΪ¶ÔÍø¸ñ¼¼Êõ±È½ÏºÃÆ棬ºÃÏñ»¹Ã»µÃµ½¹ã·ºÓ¦Óã¬Ò²¾ÍÎÞËùνÓëÇ°Ãæ°æ±¾ÓкܴóÇø±ðÁË¡£
ÔÚѸÀ×ÉÏÏÂÁ˸öÈí¼þ£¬ÔËÐÐsqlplusw£¬È»ºóÕÕ×ÅÊ飬¿ñÇÃÁËÒ»·£¬ÓÐÔÚÍøÉÏÏÂÁ˸öÊÓƵ½Ì³Ì£¨MLDNħÀֿƼ¼_Oracle¿ÎÌã©£¬½²µÃͦºÃµÄ£¬¾ÍÊÇʱ¼ä³¤Á˵㣬²»Èç¿´ÊéÀ´µÃ¿ì¡£·´ÕýÏÖÔÚÖ»ÊÇÏëÊìϤһÏ»ù±¾Óï¾ä¡£
¿´ÁËÁ½ÌìÊéÁË¡£Á˽âÁËһЩÊý¾Ý¿â»ù´¡ÖªÊ¶£¬¼òµ¥µÄ´æ´¢ºÍ¼ìË÷Êý¾ÝºÍһЩ´øWHEREµÄ²Ù×÷£¬SQLº¯Êý¡£
´òËãÕâ¸öÐÇÆÚ°ÑÊé¿´Í꣬²»Ê±µÄÕÕ×ÅÇÃÒ»±é£¬ÄªµÃÆäËû·¨×Ó¡£ÎÒÏÖÔÚ»¹Óò»µ½Êý¾Ý¿â£¬ÐÄÀï¿Õ¿ÕµÄ£¬¾ÍÀ´ÍæÍæ¡£µÈ¿´ÍêÁËÊéºóÔÙ¼ÌÐøÎÒµÄÐĵÃÌå»á¡£
½ñÌìÊǵÚÒ»ÌìÔÚÕâ¸ö²©¿ÍÉÏ䶫Î÷£¬ËùÒÔ»°¾Í¶àÁËЩ¡£°´ÄͲ»×¡°¡¡£¡£¡£
¾õµÃÓÐÓõģº
1.Êý¾Ý¿âÓëµç×ÓÊý¾Ý±íµÄÇø±ð£º
a£©¿É°üº¬´óÁ¿ÐУ¬µç×Ó±íµÄÐÐÊýÏÞÖÆÔÚ65536.
b£©ÔÊÐí¶àÓû§Í¬Ê±Ê¹Óã¬Ò»¸öÉè¼ÆÓÅÁ¼µÄÊý¾Ý¿â¿ÉÒÔͬʱÏìÓ¦Êýǧ£¨ÉõÖÁ°ÙÍò£©¸öÓû§µÄÇëÇó¡£
c£©°²È«ÐÔ£¬Êý¾Ý¿âϵͳÖÐËùÓÐÊý¾Ý¶¼ÊǾ¹ý¼ÓÃÜ´¦ÀíµÄ£¬°üÀ¨Óû§µÇ¼ʱÊý¾Ý¿âºÍÓû§¼ÆËã»úÖ®¼ä´«ÊäµÄÐÅÏ¢£¬Óû§»¹¿ÉÄܻᱻ¸³Óè·ÃÎÊÌض¨ÎĵµµÄȨÏÞ¡£
d£©¹ØÁª£¬¹ØϵÊý¾Ý¿â¡£
e£©È·±£Êý¾ÝÖÊÁ¿µÄһЩԼÊø£¬Éè¼ÆÊý¾Ý¿âʱ¶¨ÒåһЩԼÊøÌõ¼þ£¬Ìá¸ßÓÐЧÐÔ¡£
2.SQL*Plus£¬ÓÉOracleÌṩ£¬ÈÃÄãÓëÊý¾Ý¿â¹µÍ¨
a£©¸ü¸ÄÃüÁʹÓÃEDITÃüÁSQL*Plus»á´ò¿ª¼ÆËã»úÖÐĬÈÏÎı¾±à¼³ÌÐò£¬²¢×Ô¶¯½«×îºóÒ»ÌõSQLÃüÁî·Å½øÈ¥£¬Ö®ºó¾Í±£´æ£¬Í˳ö£¬/.
ʹÓÃCHANGEÃüÁchange/../..Ð޸ĵ¥¸öÐС£
b£©¸ñʽ»¯Êý×Ö£ºformat 99.99 |99£¬99|£¤99.99
¸ñʽ»¯Îı¾£ºformat a10£¨a±íʾ“×ÖĸÊý”10±íʾ¿í¶È£©
¸ñʽ»¯±êÌ⣺heading¡£¡£justify center
c£©SQL½Å±¾
ÃüÁ±à¼ edit c£º\XX.sql ÔËÐÐ @c:\XX
Ôڽű¾ÖÐʹÓñäÁ¿&¡£¡£
ÏÈдÕâЩ°É£¬Ã÷ÌìÔÙÀ´
Ïà¹ØÎĵµ£º
Ö±½Órestore»ò¸½¼ÓÓ¦¸ÃÊDz»ÐеÄ, Óýű¾+µ¼Êý¾Ý¿Ï¶¨Ã»ÓÐÎÊÌâ¡£
2005תµ½2000µÄ²½Öè
1. Éú³Éfor 2000°æ±¾µÄÊý¾Ý¿â½Å±¾
2005 µÄmanger studio
-- ´ò¿ª"¶ÔÏó×ÊÔ´¹ÜÀíÆ÷"(ûÓеĻ°°´F8), Á¬½Óµ½ÄãµÄʵÀý
-- ÓÒ¼üҪתµ½2000µÄ¿â
-- ÈÎÎñ
-- Éú³É½Å±¾
-- ÔÚ"½Å±¾Ïòµ¼"µÄ"Ñ¡ÔñÊý¾Ý¿â"ÖÐ, ......
Õª×Ôhttp://hi.baidu.com/dusongw/blog/item/4090493d6ec0cdee3d6d97a6.html
ÎÒ½«ÒÔ“°ì¹«×Ô¶¯»¯”ϵͳΪÀý£¬Ì½ÌÖÈçºÎÔÚÓÐ×Å1000ÍòÌõÊý¾ÝµÄMS SQL SERVERÊý¾Ý¿âÖÐʵÏÖ¿ìËÙµÄÊý¾ÝÌáÈ¡ºÍÊý¾Ý·ÖÒ³¡£ÒÔÏ´úÂë˵Ã÷ÁËÎÒÃÇʵÀýÖÐÊý¾Ý¿âµÄ“ºìÍ·Îļþ”Ò»±íµÄ²¿·ÖÊý¾Ý½á¹¹£º
CREATE TABL ......
select gztzid,
gztztt,
gztzbt,
gztznr,
fslxmc,
decode(fsfs, '0', 'ÎÞÐè»Ø¸´', '1', 'ÐèÒª»Ø¸´') fsfs,
&nb ......
USE AdventureWorks
GO
CREATE PROC spEmployee
AS
SELECT * from Humanresources.Employee
EXEC spEmployee
ALTER PROC spEmployee
AS SELECT EmployeeID from Humanresources.Employee
drop proc spEmployee
ALTER PROC spEmployee
@LastName nvarchar(50) = NULL
AS
IF @LastName IS NULL
SELECT * f ......