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

ÔõôÓÃsqlÓï¾ä½¨Á¢±íµÄʱºò°É×Ö¶Î˵Ã÷Ò²¼Ó½øÈ¥£¿

SQL code:


CREATE TABLE aa(
[id] int IDENTITY (1,1) NOT NULL,
[name] varchar(100) NULL,
[pass] varchar(100) NULL,
PRIMARY KEY (id)
)
GO


http://www.cnblogs.com/iinsnian/archive/2008/06/06/1214796.html

SQL code:
--Ϊ×Ö¶Îa1Ìí¼ÓÃèÊöÐÅÏ¢
EXECUTE sp_addextendedproperty N'MS_Description', 'ÐÕÃû', N'user', N'dbo', N'table', N'±í', N'column', N'a1'


sqlÓï¾ä²»ÄÜÔÚÌí¼Ó±íʱÌí¼ÓÃèÊö¡£
²»¹ý¿ÉÒÔ´´½¨±íÒÔºóÓÃϵͳ´æ´¢¹ý³ÌÌí¼ÓÃèÊö¡£
SQL code:
EXEC sp_addextendedproperty N'MS_Description',N'×Ö¶ÎÃèÊö',N'user',N'dbo',N'table',N'±íÃû³Æ',N'column',N'×Ö¶ÎÃû³Æ'


·¹ý£¬Ñ§Ï°¡£¡£¡£

ѧϰÁË£¡ ¶¥Ò»Ï£¡£¡


Ïà¹ØÎÊ´ð£º

csvÎļþת»»³Ésqlµ¼Èëµ½Êý¾Ý¿â£¬Ã»ÓÐÊý¾ÝΪºÎ£¿

Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......

SQL ¶à±í²éѯ²é³öËùÒªµÄÊý¾Ý£¿

ÒÑÖª´ÓB,±íÖÐÕÒ³öID, NAMEÁ½ÏîÓëC±íÏàͬµÄÊý¾Ý£¬ÔÙÒÀ¾ÝB±íÖо­¹ý²éѯ³öÀ´µÄID,CODEÁ½ÏîÊý¾Ý²éѯÓëA±íID,CODEÁ½ÏîÏàͬµÄÊý¾ÝÖжÔÓ¦µÄEMAILÀ´£¬²¢ÁгöÈçÏÂD±íµÄÐÎʽ£¬²»ÖªÎÒÊÇ·ñ±íʾÇå³þ£¿Âé·³°ïÎÒÁÐһϹ«Ê½ºÃÂð£¿Íò· ......

C# Á¬½ÓSQLÊý¾Ý¿â³£ÓõÄÁ¬½Ó×Ö·û´®¸ÃÈçºÎд£¿

£¨1£©string ConnString = "server=localhost;integrated security=sspi;database=pubs;";   
£¨2£©string strConnection="user uid=sa;pwd=123456;Database=test;Server=test;Connect ......

ÇëÎÊÈçºÎÓÃSQLÓï¾äÉèÖÃ×ֶεÄIDENETITYÊôÐÔ£¿

ÒòΪƽʱÕâÖÖ²Ù×÷±È½Ï¶à£¬Ö±½ÓÔÚÊý¾Ý¿âÉÏÊÖ¶¯ÉèÖÃΣÏÕÐԽϴó£¬ËùÒÔÏëÓÃSQLÓï¾äʵÏÖ¡£
ÔÚÍøÉÏʵÔÚËѲ»µ½½á¹û£¬ÕâÀï¸ßÊֶ࣬ϣÍûÄܵõ½´ð°¸¡£
лл¡£
ÄãÏëÔõ麼設ÖÃ?

SQL code:
--´´½¨²âÊÔ±í
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ