Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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
  »¶Ó­°®ºÃÕßÒ»Æð̽ÌÖ¡£


Ïà¹ØÎÊ´ð£º

Çë½ÌsqlÓï¾ä¡£ - Oracle / ¿ª·¢

ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
  ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......

oracle²¢·¢´¦ÀíSOS - Oracle / ¿ª·¢

ÎÒÔÚ¿ª·¢µÄÕâ¸öÓ¦Óò¢·¢ÐԱȽϸߣ¬oracle¸üÐÂÊý¾ÝʱºòÈçºÎ´¦Àí²¢·¢´¦ÀíÄØ£¿¸÷λ´óÏÀ·¢±íºÃµÄ¹Ûµã°¡£¬ÔÚÏߵȴý£¡
oracleÊý¾Ý¸üÐÂʱ£¬»á×Ô¶¯Ä¬ÈÏÐÐËø¶¨£¬Â¥Ö÷²»Òª²ÙÐÄ£¬Oracle¶Ô²¢Ðд¦ÀíÒѾ­ºÜ³ÉÊìÁË

ÒýÓÃ
oracle ......

·ÖÏí×Ô¼ºµÄOracleÅäÖùý³Ì - Oracle / »ù´¡ºÍ¹ÜÀí

ллÌÆÈËÀÏ´óµÄÖ¸µã£¬Ð»Ð»¸÷λ¸ßÊÖµÄÖ¸µã£¡
°²×°10g Enterprise¡£ÉÏÍøÏÂÁËMLDNµÄOracleÊÓƵ£¬¸ú×ÅÊÓƵÉϵÄÅäÖÃ×ߣ¬°²×°³É¹¦ÁË£¬µ«ÊÇûÍêÕûµØÅäÖá£
µã»÷½øÈ룺Database Configuration Assistant
1. ´´½¨Êý¾Ý¿â£» ......

OracleÖв鿴×Ô¼º´´½¨µÄ±í - Oracle / ¸ß¼¶¼¼Êõ

Ôõôͨ¹ýÃüÁî²é¿´×Ô¼ºÒѾ­´´½¨µÄ±í£¿
select tname from tab;

SQL code:

--1.sysÓû§µÇ¼
select table_name
from dba_indexes
where table_owner = '̞';
--2.ËùÓÐÓû§
select * from tab; ......

ÓÃibatisµ÷ÓÃoracleº¯ÊýµÄÎÊÌâ - Java / Web ¿ª·¢

oracleº¯ÊýÈçÏ£º
create or replace function P_WEB_GETCITYID
(
  p_mobileNumber in VARCHAR2,
  p_cityid out NUMBER
) Return NUMBER
IS
  p_areacode varc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ