DB2 10й¦ÄÜ£º´ÓOracleǨÒƸüÈÝÒ×
ÕâÀï¾ÍÓÐһЩ£º
¾Ö²¿ÀàÐÍ
´Ë¹¦ÄÜÔÊÐíPL/SQLºÍSQL PL¿éÔÚBEGIN¡END¿éÖж¨Òå¾Ö²¿ÀàÐͱäÁ¿¡£Ö®Ç°Åöµ½ÉùÃ÷ÕâÖÖÀàÐÍʱ£¬ÄãÐèÒª½«Æäת»¯ÎªÈ«¾ÖÀàÐÍ»òPL/SQl°ü¡£
ÏÖÔÚÏÂÃæµÄPL/SQL¿ÉÒÔÔÚDB2ÖнøÐС£
DECLARE TYPE point IS RECORD(x NUMBER, y NUMBER); here point; BEGIN here := (5, 3); END; / ¾Ö²¿³ÌÐò ´Ë¹¦ÄÜÀàËÆÓÚ¾Ö²¿ÀàÐÍÔÊÐíÄãÔÚBEGIN¡END¿éÖÐÉùÃ÷³ÌÐò¡£³ÌÐò·´¹ýÀ´¿ÉÒÔÉùÃ÷¾Ö²¿³ÌÐò¡¢ÔÚËûÃÇÉùÃ÷µÄ¿éÄÚÒýÓñäÁ¿ºÍ¾Ö²¿ÀàÐÍ¡£ÓëDB2 9.7Öеľֲ¿ÀàÐÍÏàËÆ£¬µ±Ò»¸öÓ¦ÓÃʹÓô˹¦ÄÜʱ£¬ÄãÐèÒªÒƶ¯¾Ö²¿ÉùÃ÷µÄ³ÌÐòµ½Ò»¸ö°üÖлòÕßʹËûÃdzÉΪȫ¾ÖÀàÐÍ¡£
ÏÖÔÚÏÂÃæµÄPL/SQL¿ÉÒÔÔÚDB2ÖнøÐС£
DECLARE TYPE point IS RECORD(x NUMBER, y NUMBER); PROCEDURE makepoint(x IN NUMBER, y IN NUMBER, xy OUT point) IS BEGIN xy := (x, y); END; here point; BEGIN makepoint(5, 3, here); END; ¡¡/ PL/SQL Expression Inlining DB2 9.7ÊÇ¿ìËٵġ£DB2 10ÉõÖÁ¸ü¿ì!
¿Í»§ºÍÒµÎñ»ï°é¾³£»á±¨¸æ˵£¬OracleÓ¦ÓóÌÐòÆôÓÃDB2´ïµ½»ò³¬¹ýԴϵͳµÄÐÔÄÜ¡£µ«ÒѾ³öÏÖÖسÌÐòÂß¼¡¢ºÜÉÙ»òûÓÐSQLµÄ¹¦ÄÜ»¹Ã»ÓдﵽÕâһĿ±êµÄÇé¿ö¡£
ÔÒòÊÇDB2 9.7Ö´Ðд󲿷ÖÊýѧ»ò×Ö·û´®±í´ïʽµÄ¼òµ¥µÄSQLÓï¾ä¡£
DB2 10ѹËõ´ó²¿·ÖËã·¨¡¢²¼¶ûÂß¼ºÍ×Ö·û´®²Ù×÷Ϊµ¥Ò»µÄÇá´¦Àíµ¥Ôª¡£Õâ´ó´óÌá¸ßÁËÐÔÄÜ¡£
Ò»¸öÉÌÒµ»ï°é»á˵£¬´ÓDB2 9.7Çл»µ½DB2 10ÌṩÁ˶à¸öÌض¨µÄPL/SQLÀý³ÌµÄ¸Ä½ø¡£Õâ·´¹ýÀ´¼ÓËÙÁËÒ»¸öͨ¹ýÓëԴϵͳÏà±È³¬Ô½20%ÒÔÉϵÄÐÔÄÜÄ¿±êµÄ¹Ø¼ü¹ý³Ì¡£
ÇëµÈ´ý£¬»¹Óиü¶à!
ÓÐÐí¶àÆäËûµÄ¹¦ÄÜ£¬¶ø²»ÊÇÔÚ½øÒ»²½Ìá¸ßÓ¦ÓóÌÐò¼æÈÝÐÔ´Ó¶øʹDB2³ÉΪһ¸öºÃµÄÑ¡Ôñ
Ö§³ÖhashÁ¬½ÓÌõ¼þµÄ±í´ïʽ
Zig zag join
ÐкÍÁеķÃÎÊ¿ØÖÆ(RCAC)
¹é²¢pureScale DB2 10
By the numbers
×ÔDB2 9.7ÒÔÀ´£¬DB2ºÍÕæÕýµÄOracleÓ¦ÓõļæÈÝÐÔÒ»Ö±ÎȲ½ÉÏÉý¡£µ½Ä¿Ç°ÎªÖ¹£¬DB2Ëƺõ´òÆÆÁË98%µÄPL/SQL´úÂëÃüÁîÐС£µ±Ä³¸öÓ¦ÓôÓOracleǨÒƵ½DB2 10ʱ£¬ÕâЩÃüÁîÐÐÒ»°ã±£³Ö²»±ä¡£ |