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

ÇómssqlºÍorcalÁ½ÌõÓï¾ä - MS-SQL Server / ÒÉÄÑÎÊÌâ

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


Ïà¹ØÎÊ´ð£º

sqlССµÄÒÉÎÊ - .NET¼¼Êõ / C#

¿ÉÄÜÒòΪ¹¤×÷µÄÔ­Òò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......

ASPÁ´½ÓSQLµÄ¼òµ¥µÇ½½çÃæ - .NET¼¼Êõ / ASP.NET

protected void btnLogin_Click(object sender, EventArgs e)
  {
  SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......

sqlÓÅ»¯ - Oracle / »ù´¡ºÍ¹ÜÀí

select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' 
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......

Çë½ÌSQLSERVERµÄÁ½¸öÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

1¡£ÔõÑùʹxp_cmdshellÄÜÍêÕûÊä³ö³¬¹ý255¸ö×Ö·ûµÄ×Ö·û´®¡£
2¡£select ʱ£¬¼ìË÷ËÙ¶ÈÊÇÓëfromºóµÄ TABLE˳ÐòÓйأ¬»¹ÊÇÓëwhereÌõ¼þµÄ˳ÐòÓйØ(TABLEÊý¾Ý¶àÉÙ )
ÔÚϵͳÊôÐÔÉ趨ÀïÓиöÑ¡Ïî,¿ÉÒÔÐ޸ĵ¥×Ö¶ÎÊä³ö×ÖÊýÏÞÖÆ. ......

SqlÓï¾ä³ö´í£¬ - Web ¿ª·¢ / ASP

ÔËÐк󱨴íÎóÈçÏ£º
´íÎóÀàÐÍ£º
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'Êýѧ + 4where ÐÕÃû='Íõ¾²'' ÖС£
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ