Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ÈçºÎÍêÕûµÄ¸´ÖÆÒ»±í - MS-SQL Server / »ù´¡Àà

ÈçÌâ,Ö»Òª±í½á¹¹.²»ÐèÒªÊý¾ÝµÄ.±í½á¹¹¸´Öƺܺø´ÖÆ.µ«ÊǸú±íÓйصĴ¥·¢Æ÷,Ë÷ÒýµÈ,»¹ÓÐͳ¼ÆÐÅÏ¢Õâ¸öÊý¾ÝÄܹ»Ò»Æð¸´ÖÆ×ßÂð.¾ÍÊÇÁ½ÕűíÊÇһģһÑùµÄ.
select * into b from a

ÒýÓÃ
select * into b from a
ûÓÃ,ÕâÖ»ÊǸ´ÖƱíÄÚÊý¾Ý

ʹÓÃselect * into tab2 from tab1
µÄ·½Ê½£¬ÊDz»»áÁ¬Í¬Ö÷¼ü,Ë÷Òý,Ô¼Êø,´¥·¢Æ÷µÈÒ»Æð ......

MSSQL ÐÐÊýͳ¼ÆµÄÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÓÐÁ½¸ö±í£¬ÊýÁ¿¼¶ÔÚ3000w×óÓÒ£¬
Ïë²é¿´¾ßÌåµÄÊýÁ¿£¬ÓÃselect Count(*) ËÙ¶ÈÌ«Âý£¬
֮ǰ¿´µ½ËµÔÚsysindexesÖÐÓÐrows ÁУ¬ µ«ÊÇÎÒ·¢ÏÖ£¬ÕâÁ½¸öµÄÖµ²»Ò»Ñù£¬Ôõô»ØÊ°¡£¿
лл
ÓÐÈËÄܻشðÒ»ÏÂÂð? ²»ÊǺÜÃ÷°×°¡

ÒýÓÃ
ÓÐÁ½¸ö±í£¬ÊýÁ¿¼¶ÔÚ3000w×óÓÒ£¬
Ïë²é¿´¾ßÌåµÄÊýÁ¿£¬ÓÃselect Count(*) ËÙ¶ÈÌ«Âý£¬
֮ǰ¿´µ½ËµÔÚsysi ......

MSSQL¿ç¿â¸üÐÂÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

UPDATE a
SET a.KeyNum=(SELECT COUNT(b.CI_ID) from myTab.dbo.CI_SinKey as b
where CONTAINS(b.SearchKey,a.KeyName)
)
from myKey.dbo.SearchKey as a
where KeyNum=0
Õâ¸öÊÇ´íÎóµÄÓï¾ä£¬ÏàÐÅ´ó¼Ò¿ÉÒÔ¿´¶®ÎÒµÄÒµÎñÐèÇó£¬ÎÒÔÙÃèÊöÒ»ÏÂ
Á½¸ö¿â£ºmyKey myTab
¶ÔÓ¦±í£ºSearchKey CI_SinKey  ......

MSSql 2000´æ´¢¹ý³Ì - MS-SQL Server / »ù´¡Àà

ÎÒ½¨Á¢ÀàËÆÕâÑùµÄ´æ´¢¹ý³Ì
SQL code:
CREATE PROCEDURE pro
@var sysname
AS
if @var='a'
select * into #mb from mb
else if @var= 'b'
select * into #mb from mb
Ìáʾ´íÎó2714:Êý¾Ý¿âÖÐÒÑ´æÔÚÃûΪ'#mb'µÄ¶ÔÏó
Ôõô½â¾ö?

2Â¥ÖÐÉÔ¸Äһϣ¬temp-->tempdb,2000ÖеĴ洢¹ý³ÌÖ»Ö§³ÖÓÀ¾Ã±íµÄÖͺó ......

¸´ÖÆmssqlÐеÄÎÊÌâ - Web ¿ª·¢ / ASP

ÈçÌâ
ÎÒʹÓÃ
VBScript code:
conn.execute("SET IDENTITY_INSERT [abc] On" & vbcrlf & "insert into [abc] (id,name,qq,msn) select (select top 1 id from [abc] order by id desc)+1,name,qq,msn) from [abc] where id="&sid&" & vbcrlf & "SET IDENTITY_I ......

mssqlµÄ¶à±í¹ØÁªÎÊÌâ - MS-SQL Server / »ù´¡Àà

a±íuid¡¢fidºÍb±íÖеÄid¹ØÁª£¬
ÈçºÎ²éѯa.uidºÍa.fid¶ÔÓ¦b±íÖеÄÏàÓ¦×ֶΡ£
SQL code:
select a.uid,a.fid,b.* from a,b where a.uid=b.id and a.fid=b.id

ÄãÊÇ˵b.idÊÇÓÉa.uid ºÍa.fid×é³ÉµÄ£¿
ÒªÊǵĻ°£¬
b.id = a.uid + a.fid 
ÕâÑùÐв»

ÓеãÃÔºý

ÒýÓÃ
a±íuid¡¢fidºÍb±íÖеÄid¹ØÁª£¬
ÈçºÎ² ......
×ܼǼÊý:200; ×ÜÒ³Êý:34; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³[2] [3] [4] [5] [6] [7] [8] [9] [10]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ