oracleÖÐvarchar2Êý¾ÝÀàÐÍ - Oracle / »ù´¡ºÍ¹ÜÀí
VARCHAR2(<size>) varchar2Êý¾ÝÀàÐÍÊÇÒ»Öֿɱ䳤¶ÈµÄ¡¢ÓÐ×î´ó³¤¶ÈµÄ×ÖĸÊý×ÖÐÍÊý¾Ý¡£Varchar2ÀàÐ͵Ä×ֶγ¤¶È¿ÉÒÔ´ïµ½4000×Ö½Ú£¬Varchar2ÀàÐ͵ıäÁ¿³¤¶È¿ÉÒÔ´ïµ½32676×Ö½Ú¡£ ËÄÜ°ïÎÒ½âÊÍһϣ¬¸ÃÔõôÀí½â£¿Ð»Ð»
-- Ding ÔÚ¶¨Òå±íʱ£¬×î´ó³¤¶ÈΪ4000 È磺 create table test(a varchar2(4000)) ÔÚpl/sqlÖж¨Òå±äÁ¿×î´ó³¤¶ÈΪ32767 È磺 declare str varchar2(32767); begin str := 'hello'; dbms_output.put_line(str); end; / 2Â¥½âÊͿɳÆÍêÃÀ¡£ÕâÀïµÄ³¤¶ÈÖ¸µÄÊÇ×Ö½ÚÊý¡£ÒýÓà ÔÚ¶¨Òå±íʱ£¬×î´ó³¤¶ÈΪ4000 È磺 create table test(a varchar2(4000)) ÔÚpl/sqlÖж¨Òå±äÁ¿×î´ó³¤¶ÈΪ32767 È磺 declare str varchar2(32767); begin str := 'hello'; dbms_output.put_line(str); end; / Ϊʲô»áÓÐ×ֶκͱäÁ¿µÄ³¤¶ÈµÄ²î±ðÄØ£¿ ×Ö¶ÎÓÃÓÚ±íÊý¾ÝµÄ´æ´¢£¬¶ø±äÁ¿µÄ³¤¶ÈλÓÚ´æ´¢¹ý³Ìµ±ÖС£ÊÇÁ½ÀàÍêÈ«²»Í¬µÄÎïÀí¶ÔÏó¡£´¦Àí·½Ê½¿Ï¶¨Óв»Í¬µÄÑ¡Ôñ¡£Õâ¸úÊý¾Ý¿âµÄÎïÀíʵÏÖÓйء£²»ÊÇÎÒÃÇÄܹ»ÉµÄ¡£ tangren½âÊ͵ĺܺà VARCHAR2ÀàÐÍ¿ÉÓÃÓÚSQLºÍPLSQL SQL×î´ó4000¸ö×Ö½Ú£¬²»¹ÜÄãÊÇ°´×Ö½Ú¶¨Ò廹ÊÇ×Ö·û¶¨Ò壬×î¶àÖ»ÄÜ´æ´¢4000×Ö½Ú PLSQL×î´ó32767×Ö½Ú£¬¡£¡£¡£¡£¡£¡£¡£¡£¡£Ò²Ö»ÄÜ´æ´¢32767×Ö½Ú ¶¥Ò»Ï oracle QQȺ£º54775466 »¶Ó°®ºÃÕßÒ»Æð̽ÌÖ¡£
Ïà¹ØÎÊ´ð£º
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£ ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î date(Ö÷) outid(Ö÷) inid(Ö÷) num amt 2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
ÎÒÔÚ¿ª·¢µÄÕâ¸öÓ¦Óò¢·¢ÐԱȽϸߣ¬oracle¸üÐÂÊý¾ÝʱºòÈçºÎ´¦Àí²¢·¢´¦ÀíÄØ£¿¸÷λ´óÏÀ·¢±íºÃµÄ¹Ûµã°¡£¬ÔÚÏߵȴý£¡ oracleÊý¾Ý¸üÐÂʱ£¬»á×Ô¶¯Ä¬ÈÏÐÐËø¶¨£¬Â¥Ö÷²»Òª²ÙÐÄ£¬Oracle¶Ô²¢Ðд¦ÀíÒѾºÜ³ÉÊìÁË ÒýÓà oracle ......
ллÌÆÈËÀÏ´óµÄÖ¸µã£¬Ð»Ð»¸÷λ¸ßÊÖµÄÖ¸µã£¡ °²×°10g Enterprise¡£ÉÏÍøÏÂÁËMLDNµÄOracleÊÓƵ£¬¸ú×ÅÊÓƵÉϵÄÅäÖÃ×ߣ¬°²×°³É¹¦ÁË£¬µ«ÊÇûÍêÕûµØÅäÖᣠµã»÷½øÈ룺Database Configuration Assistant 1. ´´½¨Êý¾Ý¿â£»
......
Ôõôͨ¹ýÃüÁî²é¿´×Ô¼ºÒѾ´´½¨µÄ±í£¿ select tname from tab; SQL code: --1.sysÓû§µÇ¼ select table_name from dba_indexes where table_owner = 'Óû§Ãû'; --2.ËùÓÐÓû§ select * from tab;
......
oracleº¯ÊýÈçÏ£º create or replace function P_WEB_GETCITYID ( p_mobileNumber in VARCHAR2, p_cityid out NUMBER ) Return NUMBER IS p_areacode varc ......