Oracle ´æ´¢¹ý³ÌÖе÷ÓÃ×Ô¶¨ÒåµÄº¯ÊýÎÊÌ⣿
ÎÒÏÖÔÚÔÚ×öÒ»¸öOracleÊý¾Ýµ¼È룬Ҫ½«EXCELÊý¾Ýµ¼Èëµ½OracleÊý¾Ý¿âÖУ¬ÏȶÁÈ¡Êý¾Ý£¬½«Êý¾Ý±£´æÔÚÒ»ÕÅÁÙʱ±íÖУ¬È»ºóµ¼Èë֮ǰ¶ÔÁÙʱ±íÖÐÊý¾ÝµÄÿ¸ö×Ö¶Î×öУÑ飬±ÈÈçÊý¾ÝÊÇ·ñΪÕûÊý£¬ÕûÊýµÄ×î´óλÊý£¬¼°µ¼ÈëµÄÊý¾ÝÔÚÔÊý¾Ý¿âÖÐÊÇ·ñÒѾ´æÔڵȣ¬ÎÒдÁËÒ»¸ö´æ´¢¹ý³Ì£¬¶ÔÒì³£µÄÊý¾Ý£¬½«×ֶΓis_checked”ÉèΪÒì³£ÐÅÏ¢¡£
ÔÚ¶ÔÊý×ÖÐÍÊý¾Ý×öУÑéʱ£¬ÎªÁËÑéÖ¤¸Ã×Ö¶ÎÊÇ·ñΪÊý×Ö£¬»òÕßΪÕûÊý£¬ÎÒÔÚOracleÖÐдÁËÒ»¸ö×Ô¶¨ÒåµÄÊý×ÖУÑ麯Êý£¬²¢ÔÚ´æ´¢¹ý³ÌÖе÷Óøú¯Êý£¬µ«ÊÇÎÒ·¢ÏÖµÚÒ»´Îµ¼Èëʱ£¬ËùÓÐÊý¾ÝУÑéÕý³££¬µ«Êǵ±µÚ¶þ´Îµã»÷µ¼ÈëµÄʱºò£¬´æ´¢¹ý³Ì¾Í²»ÄÜÖØе÷Óøú¯Êý£¬ÀíËùµ±È»Ð£ÑéµÄÊý¾ÝÒ²¶¼ÊÇ´íÎóµÄ£¬ÓëµÚÒ»´ÎУÑéµÄ½á¹û´óΪ²»Í¬£¬µ÷ÊÔÐÞ¸ÄÖ®ºó£¬·¢ÏÖ±ØÐëÖØбàÒëÕâ¸öУÑ麯Êý²ÅÄÜÕý³£µÄУÑé¡£Õâ¸öÎÊÌâ¾ÍÁ¬ÏÖÔÚµÄÏîÄ¿¾ÀíÒ²½â¾ö²»ÁËÁË£º£©
ÔÚÕâÀïÏëÎÊ´ó¼Ò£¬ÓÐʲô°ì·¨¿ÉÒÔÔÚ´æ´¢¹ý³ÌÖе÷Óøú¯ÊýʱֻÐè±àÒëÒ»´Î£¿»òÕßµ÷ÓÃ֮ǰ¶Ô¸Ãº¯ÊýÖØбàÒëµÄ·½·¨£¬ÓÐ×ö¹ýÀàËÆÏîÄ¿µÄͬÈÊ°ïæ½â¾öһϰ¡£º£©
ºÇºÇ ±È½ÏÍ·ÌÛµÄÎÊÌ⣬Ҳ¿ÉÄÜÊÇÎÒµÄУÑ麯Êý³öÁËÎÊÌ⣬ÒÔÏÂÊÇÎÒ×Ô¼ºÐ´µÄµÄOracleÊý×ÖУÑ麯Êý£¬²»Öª¶Ô·ñ£¬Íû¶à¶àÖ¸½Ì¡«¡«
CREATE OR REPLACE FUNCTION IS_POSITIVE_NUMERIC(MyStr VARCHAR2,intMax integer,decimalMax integer) RETURN NUMBER
IS
/******************************************************************************
PURPOSE: ÅжÏÊäÈëµÄ×Ö·û´®ÊÇ·ñΪºÏ·¨µÄÕýÊý
REVISIONS:
Ver Date Author Description
--------- ---------- --------------- ------------------------------------
1.0 2008-11-17 lei.zhao 1. Created this procedure.
ÊäÈë²ÎÊý£º
MyStr £ºÒª¼ìÑéµÄ×Ö·û´®
intMax£ºÕûÊý²¿·Ö×î´óλÊý
&
Ïà¹ØÎĵµ£º
1.1.1 OracleÎﻯÊÓͼ¼ò½é
1. ÎﻯÊÓͼ˵Ã÷
ÎﻯÊÓͼ (Materialized View)£¬ÔÚÒÔÇ°µÄOracle°æ±¾ÖгÆΪ¿ìÕÕ(Snapshot)¡£Oracle µÄÎﻯÊÓͼÌṩÁËÇ¿´óµÄ¹¦ÄÜ£¬¿ÉÒÔÓÃÓÚÔ¤ÏȼÆËã²¢±£´æ±íÁ¬½Ó»ò¾Û¼¯µÈºÄʱ½Ï¶àµÄ²Ù×÷µÄ½á¹û ......
Ò»¡¢PL/SQL³öÏÖµÄÄ¿µÄ
¡¡¡¡½á¹¹»¯²éѯÓïÑÔ(Structured Query
Language£¬¼ò³ÆSQL)ÊÇÓÃÀ´·ÃÎʹØϵÐÍÊý¾Ý¿âÒ»ÖÖͨÓÃÓïÑÔ£¬ËüÊôÓÚµÚËÄ´úÓïÑÔ£¨4GL£©£¬ÆäÖ´ÐÐÌصãÊǷǹý³Ì»¯£¬¼´²»ÓÃÖ¸Ã÷Ö´ÐеľßÌå·½·¨ºÍ;
¾¶£¬¶øÊǼòµ¥µÄµ÷ÓÃÏàÓ¦Óï¾äÀ´Ö±½ÓÈ¡µÃ½á¹û¼´¿É¡£ÏÔÈ»£¬ÕâÖÖ²»¹Ø×¢ÈκÎʵÏÖϸ½ÚµÄÓïÑÔ¶ÔÓÚ¿ª·¢ÕßÀ´ËµÓÐ׿«´óµÄ ......
˵µ½Èí½âÎö£¨soft prase£©ºÍÓ²½âÎö£¨hard prase£©£¬¾Í²»Äܲ»ËµÒ»ÏÂOracle¶ÔsqlµÄ´¦Àí¹ý³Ì¡£µ±Äã·¢³öÒ»ÌõsqlÓï¾ä½»¸¶Oracle£¬ÔÚÖ´ÐкͻñÈ¡½á¹ûÇ°£¬Oracle¶Ô´Ësql½«½øÐм¸¸ö²½ÖèµÄ´¦Àí¹ý³Ì£º
1¡¢Óï·¨¼ì²é£¨syntax check£©
¼ì²é´ËsqlµÄƴдÊÇ·ñÓï ......
¡¶1¡·DDLÓï¾ä(Êý¾Ý¶¨ÒåÓïÑÔ) Data Define Language
create
alter
drop
truncate ¿ªÍ·µÄÓï¾ä truncate table <±íÃû>
Ìصã:<1>½¨Á¢ºÍÐÞ¸ÄÊý¾Ý¶ÔÏó
&nb ......
ÓкܶàÓ¦ÓÃÏîÄ¿, ¸ÕÆð²½µÄʱºòÓÃMYSQLÊý¾Ý¿â»ù±¾ÉÏÄÜʵÏÖ¸÷ÖÖ¹¦ÄÜÐèÇó£¬Ëæ×ÅÓ¦ÓÃÓû§µÄÔö¶à£¬Êý¾ÝÁ¿µÄÔö¼Ó£¬MYSQL½¥½¥µØ³öÏÖ²»¿°ÖظºµÄÇé¿ö£ºÁ¬½ÓºÜÂýÉõÖÁå´»ú£¬ÓÚÊǾÍÓаÑÊý¾Ý´ÓMYSQLǨµ½ORACLEµÄÐèÇó£¬Ó¦ÓóÌÐòÒ²ÒªÏàÓ¦×öһЩÐ޸ġ£±¾ÈË×ܽá³öÒÔϼ¸µã×¢ÒâÊÂÏϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1£® ×Ô¶¯Ôö³¤µÄÊý¾ ......