Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : mssql

MSSQLµÄsqlÓï¾ä

ÎÒÔ­À´ÊÇÓÉaccessת³ÉmssqlµÄ..Ô­À´µÄ×ÔÔö×Ô¶¯Ã»ÓÐÁË
ÎÒÔõôÓÃsqlÀ´×ª»¯ÄØ£¿£¨²»ÏëÔÚÆóÒµÃæ°å¹ÜÀíÖÐ¸Ä ±íÌ«¶à..£©
»¹ÓÐsmalldateµÄĬÈÏÖµ¸Ä³Égetdate()µÄÓï¾äÒªÔõôд..ллÁË
accessת³ÉmssqlµÄ..Ô­À´µÄ×ÔÔö×Ô¶¯Ã»ÓÐÁË
Ö»ÄÜ×Ô¼º¼ÓÁË

²»ÄÜÓÃsqlÀ´Éý¼¶²»£¿alert table a modify ....ÕâÑùµÄ²»ÐУ¿

SQL code:
--´ ......

ÐÞ¸ÄmssqlÁеÄÃû³Æ

ÎÒÒª°Ñv10004¸Ä³ÉÃû×ÖÆøѹ£¬ÎªºÎ×ܳö´í
EXEC  sp_rename  'dbo,A0131.[v10004]',  'Æøѹ',  'COLUMN'

ÏûÏ¢ 15248£¬¼¶±ð 11£¬×´Ì¬ 1£¬¹ý³Ì sp_rename£¬µÚ 213 ÐÐ
²ÎÊý @objname ²»Ã÷È·»òËùÉùÃ÷µÄ @objtype (column)ÓÐÎó¡£

SQL code:
EXEC sp_rename '[ ......

mssql ¹ØÓÚwhereÓï¾äµÄλÖÃ

ÀýÈ磺select a.* from (select id,code from b left join c on b.id=c.id)a where id=1
ÕâÀïµÄwhere ÔÚÖ´ÐеÄʱºò£¬ where »áÓÅ»¯ÊÇ·ñ½øÈ뵽СÀ¨ºÅÀïÃæÖ´ÐÐ?????
SQL code:
select id,code from b left join c on b.id=c.id
where id=1

ÒýÓÃ
SQL codeselect id,codefrom bleftjoin con b.id=c.idwhere id=1
......

mssql£¬mysqlÓëmstlq

·´ÕýÎÒÊǾ­³£·Ö²»Çå¡­¡­
¼ÌÐøÉ¢·Ö
µÚÒ»¸ö±ÕÔ´£¬µÚ¶þ¸ö¿ªÔ´£¬µÚÈý¸öûŮÈËÔµ¡­¡­

LZÄ㻹ÓпÉÓ÷Öô£¿

ÒýÓÃ
LZÄ㻹ÓпÉÓ÷Öô£¿
5·Ö

ÒýÓÃ
µÚÒ»¸ö±ÕÔ´£¬µÚ¶þ¸ö¿ªÔ´£¬µÚÈý¸öûŮÈËÔµ¡­¡­

ÓÐÒâ˼¡£¿´±êÌâÎÒ»¹ÒÔΪÊÇmstlqÓëmysqlÄØ£¬½á¹û×îºó»¹ÕæÓÐmstlq£¬ºÇºÇ¡£

Ë­Òª¿ÉÓ÷֣¬ÔõôÔùË͵ġ£

ÎÒÒª^_^
http: ......

¼±ÇóÒ»MSSQLÈ¥³ýÖظ´ÏîÓï¾ä


»ù´¡±íA¡¢BÈçͼ£¬ÓÉÓÚÒ»ÌõÐÂÎÅÖпÉÄÜÓжàÕÅͼƬ£¬ËùÒÔBÖлá³öÏÖ¶à¸öͼƬ±àºÅ¶ÔÒ»¸öÐÂÎűàºÅµÄÇé¿ö¡£
Çó´´½¨C±í£¨ÊÓͼ£©µÄsqlÓï¾ä¡£
SQL code:
select
b.pictureid as ͼƬ±àºÅ,a.newstitle as ÐÂÎűêÌâ,a.newurl as ÐÂÎŵØÖ·,b.pictureaddress as ͼƬµØÖ·
from
a
left join
b
on
a.newid=b.newsid
......

MSSQL´æ´¢Êý¾ÝÎÊÌâ

ÎÒÓõÄÊÇrealÊý¾ÝÀàÐÍ£¬µ«ÊǴ洢СÓÚ1µÄÊýʱǰÃæµÄ0ûÓÐÁË£¬¸ÃÔõô½â¾ö£¬±ÈÈ磺ÎÒÏë´æ´¢0.1£¬ÔÚÊý¾Ý¿âÀïÖ»ÓС°.1¡±,0ûÓÐÁË£¬ÒªÔõôÉèÖ㬻òÕßÊý¾ÝÀàÐÍÊDz»ÊÇÒª»»Ò»ÖÖ ??
decimal(9,1)

Õâ¸öòËÆÓëÀàÐÍÎÞ¹Ø
Óë²Ù×÷ϵͳÓйØ
µ«ÊÇһֱûÓÐÕÒµ½
ÔõôÉèÖÃ

SQL code:
2000±¾À´¾ÍÕâÑù
²»¹ý½¨Ò黹ÊÇ´æΪdecimal Ð͵Ä
......
×ܼǼÊý:200; ×ÜÒ³Êý:34; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [4] [5] [6] [7] 8 [9] [10] [11] [12] [13]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ