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

ÇómssqlºÍorcalÁ½ÌõÓï¾ä - Oracle / ¸ß¼¶¼¼Êõ

SQL code:

sql2005£¬sql2008

SELECT

±íÃû=CASE WHEN a.colorder = 1 THEN d.name ELSE '' END,

±í˵Ã÷=CASE WHEN a.colorder = 1 THEN isnull(f.value, '') ELSE '' END ,

×Ö¶ÎÐòºÅ=a.colorder ,

×Ö¶ÎÃû=a.name ,

±êʶ=CASE WHEN COLUMNPROPERTY(a.id, a.name, 'IsIdentity') = 1 THEN '¡Ì' ELSE '' END ,

Ö÷¼ü=CASE WHEN EXISTS (SELECT 1 from dbo.sysindexes si INNER JOIN

dbo.sysindexkeys sik ON si.id = sik.id AND si.indid = sik.indid INNER JOIN

dbo.syscolumns sc ON sc.id = sik.id AND sc.colid = sik.colid INNER JOIN

dbo.sysobjects so ON so.name = so.name AND so.xtype = 'PK'

WHERE sc.id = a.id AND sc.colid = a.colid) THEN '¡Ì' ELSE '' END ,

ÀàÐÍ=b.name ,

³¤¶È=a.length ,

¾«¶È=COLUMNPROPERTY(a.id, a.name, 'PRECISION') ,

СÊýλÊý=ISNULL(COLUMNPROPERTY(a.id, a.name, 'Scale'), 0) ,

ÔÊÐí¿Õ=CASE WHEN a.isnullable = 1 THEN '¡Ì' ELSE '' END ,

ĬÈÏÖµ= ISNULL(e.text, ''),

×Ö¶Î˵Ã÷=ISNULL(g.[value], ''),

´´½¨Ê±¼ä=d.crdate,

¸ü¸Äʱ¼ä=CASE WHEN a.colorder = 1 THEN d.refdate ELSE NULL END

from dbo.syscolumns a LEFT OUTER JOIN

dbo.systypes b ON a.xtype = b.xusertype INNER JOIN

dbo.sysobjects d ON a.id = d.id AND d.xtype = 'U' AND

d.status >= 0 LEFT OUTER JOIN

dbo.syscomments e ON a.cdefault = e.id LEFT OUTER JOIN

sys.extended_properties g ON a.id = g.major_id


Ïà¹ØÎÊ´ð£º

oracle·þÎñ״̬ÏÔʾ ¡°Í£Ö¹¡±

ÎÒÊÇÓÃÔ¶³Ì×ÀÃæÁ¬²Ù×÷·þÎñÆ÷ÉϵÄÊý¾Ý¿â¡£
ÔÚ´´½¨Ò»¸öÓû§Ö®ºó£¬ÔÙÓÃPLSQLµÇ¼£¬ÔòPLSQLËÀµôÁË¡£
ÎҹصôPLSQLÖ®ºó£¬ÓÃÆäËûÓû§Ò²²»ÄܵǼ¡£

ÎÒ°ÑoracleµÄ·þÎñÍ£Ö¹£¬½á¹û¾ÍÊÇoracleµÄ·þÎñ״̬¾ÍÍ£ÁôÔÚ¡°Í ......

oracle 10g°²×°µ½85%ʱ±¨´í

¸÷λoracle¸ßÊÖ£¬Çë½ÌÒ»ÏÂΪʲôoracle 10gÔÚ°²×°µ½°Ù·ÖÖ®°ËÊ®ÎåµÄʱºò¾Í±¨´í²»ÄܼÌÐø°²×°£¿

ÄÚ´æ¶à´ó£¿¡¡ÖØÐÂϸöÊý¾Ý¿â°²×°ÊÔÊÔ..

ÒýÓÃ
¸÷λoracle¸ßÊÖ£¬Çë½ÌÒ»ÏÂΪʲôoracle 10gÔÚ°²×°µ½°Ù·ÖÖ®°ËÊ®ÎåµÄʱ ......

oracle spatial¿Õ¼äº¯Êý³ö´í - Oracle / ¸ß¼¶¼¼Êõ

ÔÚÖ´ÐаüµÄʱºòÒýÓÃoracle spatial¿Õ¼äº¯Êý³ö´í£¬³ö´íÇé¿öÈçÏÂ
Errors in file
/user/oracle/app/oracle/admin/grid/udump/grid1_ora_143768.trc: ORA-29902:
error in executing ODCIIndexStart() routine ORA-0 ......

[Ô­´´] ORACLE Á¬½Ó×Ö´® - Oracle / ·Ç¼¼ÊõÇø

¼ÙÉètable01 ÖÐÓÐ ÒÔÏÂ×ÊÁÏ
emp_no emp_name
------- ------------
0001 TOM
0002 JOHN
0003 MARY
³£Óõ绰 
¶øÎÒÃÇÒªµÃµ½ÒÔϵÄOUTPUT (»òÊǸ÷ÖÖÆäËûµÄoutput)
0001,TOM
0002,JOHN ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ