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

oracleÖ§³ÖµÄÊý¾ÝÀàÐÍ

³£ÓõÄÊý¾Ý¿â×Ö¶ÎÀàÐÍÈçÏ£º
×Ö¶ÎÀàÐÍ ÖÐÎÄ˵Ã÷ ÏÞÖÆÌõ¼þ ÆäËü˵Ã÷
CHAR ¹Ì¶¨³¤¶È×Ö·û´® ×î´ó³¤¶È2000 bytes
VARCHAR2 ¿É±ä³¤¶ÈµÄ×Ö·û´® ×î´ó³¤¶È4000 bytes ¿É×öË÷ÒýµÄ×î´ó³¤¶È749
NCHAR ¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´® ×î´ó³¤¶È2000 bytes
NVARCHAR2 ¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¿É±ä³¤¶È×Ö·û´® ×î´ó³¤¶È4000 bytes
DATE ÈÕÆÚ£¨ÈÕ-ÔÂ-Ä꣩ DD-MM-YY£¨HH-MI-SS£© ¾­¹ýÑϸñ²âÊÔ£¬ÎÞǧ³æÎÊÌâ
LONG ³¬³¤×Ö·û´® ×î´ó³¤¶È2G£¨231-1£© ×ã¹»´æ´¢´ó²¿Í·Öø×÷
RAW ¹Ì¶¨³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý ×î´ó³¤¶È2000 bytes ¿É´æ·Å¶àýÌåͼÏóÉùÒôµÈ
LONG RAW ¿É±ä³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý ×î´ó³¤¶È2G ͬÉÏ
BLOB ¶þ½øÖÆÊý¾Ý ×î´ó³¤¶È4G
CLOB ×Ö·ûÊý¾Ý ×î´ó³¤¶È4G
NCLOB ¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ×Ö·ûÊý¾Ý ×î´ó³¤¶È4G
BFILE ´æ·ÅÔÚÊý¾Ý¿âÍâµÄ¶þ½øÖÆÊý¾Ý ×î´ó³¤¶È4G
ROWID Êý¾Ý±íÖмǼµÄΨһÐкŠ10 bytes ********.****.****¸ñʽ£¬*Ϊ0»ò1
NROWID ¶þ½øÖÆÊý¾Ý±íÖмǼµÄΨһÐкŠ×î´ó³¤¶È4000 bytes
NUMBER(P,S) Êý×ÖÀàÐÍ PΪÕûÊý룬SΪСÊýλ
DECIMAL(P,S) Êý×ÖÀàÐÍ PΪÕûÊý룬SΪСÊýλ
INTEGER ÕûÊýÀàÐÍ Ð¡µÄÕûÊý
FLOAT ¸¡µãÊýÀàÐÍ NUMBER(38)£¬Ë«¾«¶È
REAL ʵÊýÀàÐÍ NUMBER(63)£¬¾«¶È¸ü¸ß
Êý¾ÝÀàÐÍ ²ÎÊý ÃèÊö
char(n) n=1 to 2000×Ö½Ú ¶¨³¤×Ö·û´®£¬n×Ö½Ú³¤£¬Èç¹û²»Ö¸¶¨³¤¶È£¬È±Ê¡Îª1¸ö×Ö½Ú³¤£¨Ò»¸öºº×ÖΪ2×Ö½Ú£©
varchar2(n) n=1 to 4000×Ö½Ú ¿É±ä³¤µÄ×Ö·û´®£¬¾ßÌ嶨ÒåʱָÃ÷×î´ó³¤¶Èn£¬ÕâÖÖÊý¾ÝÀàÐÍ¿ÉÒÔ·ÅÊý×Ö¡¢×ÖĸÒÔ¼°ASCIIÂë×Ö·û¼¯(»òÕßEBCDICµÈÊý¾Ý¿âϵͳ½ÓÊܵÄ×Ö·û¼¯±ê×¼)ÖеÄËùÓзûºÅ¡£
Èç¹ûÊý¾Ý³¤¶ÈûÓдﵽ×î´óÖµn£¬Oracle 8i»á¸ù¾ÝÊý¾Ý´óС×Ô¶¯µ÷½Ú×ֶγ¤¶È£¬Èç¹ûÄãµÄÊý¾ÝÇ°ºóÓпոñ£¬Oracle 8i»á×Ô¶¯½«Æäɾȥ¡£VARCHAR2ÊÇ×î³£ÓõÄÊý¾ÝÀàÐÍ¡£¿É×öË÷ÒýµÄ×î´ó³¤¶È3209¡£
number(m,n) m=1 to 38
n=-84 to 127 ¿É±ä³¤µÄÊýÖµÁУ¬ÔÊÐí0¡¢ÕýÖµ¼°¸ºÖµ£¬mÊÇËùÓÐÓÐЧÊý×ÖµÄλÊý£¬nÊÇСÊýµãÒÔºóµÄλÊý¡£
È磺number(5,2)£¬ÔòÕâ¸ö×ֶεÄ×î´óÖµÊÇ99,999£¬Èç¹ûÊýÖµ³¬³öÁËλÊýÏÞÖƾͻᱻ½ØÈ¡¶àÓàµÄλÊý¡£
È磺number(5,2)£¬µ«ÔÚÒ»ÐÐÊý¾ÝÖеÄÕâ¸ö×Ö¶ÎÊäÈë575.316£¬ÔòÕæÕý±£´æµ½×Ö¶ÎÖеÄÊýÖµÊÇ575.32¡£
È磺number(3,0)£¬ÊäÈë575.316£¬ÕæÕý±£´æµÄÊý¾ÝÊÇ575¡£
date ÎÞ ´Ó¹«ÔªÇ°4712Äê1ÔÂ1ÈÕµ½¹«Ôª4712Äê12ÔÂ31ÈÕµÄËùÓкϷ¨ÈÕÆÚ£¬Oracle 8iÆäʵÔÚÄÚ²¿ÊÇ°´7¸ö×Ö½ÚÀ´±£´æÈÕÆÚÊý¾Ý£¬ÔÚ¶¨ÒåÖл¹°üÀ¨Ð¡Ê±¡¢·Ö¡¢Ãë¡£
ȱʡ¸ñʽΪDD-MON-YY£¬Èç07-11ÔÂ-00 ±íʾ2000Äê11ÔÂ7ÈÕ


Ïà¹ØÎĵµ£º

Oracle ERPϵ統½è´û¹Øϵ±í

ϵͳ·Ö²½Öè²úÉúµÄ·Ö¼£º
1£©¿â´æÄ£¿é×÷½ÓÊÕʱ²úÉúµÄ·Ö¼Ϊ£º
½è£º²ÄÁϲɹº £¨²É¹ºµ¥¼ÛX¶©µ¥ÊýÁ¿£©
´û£ºÓ¦¼Æ¸ºÕ®
£¨²É¹ºµ¥¼ÛX¶©µ¥ÊýÁ¿£©
2£©¿â´æÄ£¿é×÷¼ìÑéÈë¿âʱ²úÉúµÄ·Ö¼Ϊ£º
ϵͳ²úÉúµÄ·Ö¼·Ö±ðΪ£º
1£©¿â´æÄ£¿é×÷½ÓÊÕʱ²úÉúµÄ·Ö¼Ϊ£º
½è£º²ÄÁϲɹº
£¨²É¹ºµ¥¼ÛX¶©µ¥ÊýÁ¿£©
´û£ºÓ¦¼Æ¸ºÕ®
£¨²É¹ºµ¥¼ÛX¶©µ¥Ê ......

oracleÖÐÖØÃüÃûÁÐÃûºÍ±íÃû

ÎÒÃÇÔÚ´´½¨±í½á¹¹µÄ¹ý³ÌÖУ¬¿ÉÄÜ»áÓÉÓÚʧÎó£¬Ôì³É±íÖÐÁÐÃû´íÎó£¬ÈçºÎ¸ü¸ÄÄØ£¬Äã¿ÉÄÜ»á»Ø´ð£¬Ê¹ÓÃOEM»òÕßPL/SQL£¬³ýÁËÕâÁ½ÖÖ·½·¨£¬ÎÒÃÇ¿ÉÒÔʹÓÃÃüÁ
   ALTER TABLE ±íÃû rename   column  ÁÐÃû to ÐÂÁÐÃû     ×¢ÒâcolumnÊǹؼü×Ö   /*ÖØÃüÃûÁÐÃû*/
  ALTE ......

Oracle¸üжàÐÐ

¸üжàÐеIJ½Ö裺
²½Öè¶à£¬µ«Ð§ÂʱȽϸߣº
1¡¢create table ÁÙʱ±í value (select a.id,a.name,b.name,... from table1 a,table2 b where a.id=b.id)
2¡¢É¾³ýtable1ÖеļǼ£¬²»Òªdrop
3¡¢insert into table1 select ÄãÐèÒªµÄ×ֶΠfrom ÁÙʱ±í¡£
select * from tb_ai03
create table tb_ai031 as select * from tb ......

Oracle LongÐÍ

Oracle LongÐÍ
 
1¡¢LONG Êý¾ÝÀàÐÍÖд洢µÄÊǿɱ䳤×Ö·û´®£¬×î´ó³¤¶ÈÏÞÖÆÊÇ2GB¡£
2¡¢¶ÔÓÚ³¬³öÒ»¶¨³¤¶ÈµÄÎı¾£¬»ù±¾Ö»ÄÜÓÃLONGÀàÐÍÀ´´æ´¢£¬Êý¾Ý×ÖµäÖкܶà¶ÔÏóµÄ¶¨Òå¾ÍÊÇÓÃLONGÀ´´æ´¢µÄ¡£
3¡¢LONGÀàÐÍÖ÷ÒªÓÃÓÚ²»ÐèÒª×÷×Ö·û´®ËÑË÷µÄ³¤´®Êý¾Ý£¬Èç¹ûÒª½øÐÐ×Ö·ûËÑË÷¾ÍÒªÓÃvarchar2ÀàÐÍ¡£
4¡¢ºÜ¶à¹¤¾ß£¬°üÀ¨SQL*Plus£¬´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ