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

Çë½ÌÒ»¸öSQLÎÊÌâ

Ö´ÐÐÏÂÃæÒ»¶Î´úÂ룺
declare @sql varchar(1000)
set @sql = 'select identity(int,1,1) as tbId,* into #tb1 from ex091214 where 1=0'
exec(@sql)
select * from #tb1
--Öм仹ÐèÒªÓõ½#tb1
drop table #tb1

»áÕÒ²»µ½#tb1£¬¶øÎÒÓÖ²»ÏëÕâÑù¶¨Ò壺##tb1£¬ÄÄλ¸ßÊÖ¸æËßÎÒÔõô°ì£¿
²»Ðоʹ´½¨Ò»¸öʵ¼ÊµÄ±í£¬È»ºóÔÙdrop

SQL code:
declare @sql varchar(1000)
create table #tb1(...

set @sql = 'insert #tb1(...) select identity(int,1,1) as tbId,* from ex091214 where 1=0'
exec(@sql)
select * from #tb1
--Öм仹ÐèÒªÓõ½#tb1
drop table #tb1


£££­£­£­£¾££££

¸ã³ÉÁ½¸ö

SQL code:
declare @sql varchar(1000)
set @sql = 'select identity(int,1,1) as tbId,* into #tb1 from ex091214 where 1=0;
select * from #tb1;
drop table #tb1'
exec(@sql)


declare @sql varchar(1000)
set @sql = 'select identity(int,1,1) as tbId,* into #tb1 from ex091214 where 1=0 select * from #tb1 drop table #tb1'
exec(@sql)

ÒýÓÃ
Ö´ÐÐÏÂÃæÒ»¶Î´úÂ룺
declare @sql varchar(1000)
set @sql = 'select identity(int,1,1) as tbId,* into #tb1 from ex091214 where 1=0'
exec(@sql)
select * from #tb1
--Öм仹ÐèÒªÓõ½#tb1
drop table #tb1

»áÕÒ²»µ½#


Ïà¹ØÎÊ´ð£º

Asp+sql serverÎÊÌâ - Web ¿ª·¢ / ASP

ÎÒÒ»¸öÏîÄ¿£¬Óиö²åÈë²Ù×÷£¬¾ßÌåÊÇÕâÑùµÄ£º
ÎÒÓнø»õÐÅÏ¢±í¡£ÔÚ³ö»õʱѡÔñÏàÓ¦µÄ½ø»õÐÅÏ¢£¬ÊäÈëÊýÁ¿£¬Ñ¡Ôñ²¿Ãź󣬵㱣´æ°´Å¥£¬ÓÉÓÚÍøÂçÑÓʱ£¬µãÒ»ÏÂûÓз´Ó³£¬ÓÚÊÇÓû§¾ÍÓÖµãһϣ¬µ¼ÖÂÒ»´Î²åÈëÁËÁ½Ìõ¼Ç¼:
Àý£º ......

Çë½ÌsqlÓï¾ä¡£ - Oracle / ¿ª·¢

ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
  ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......

Êý¾ÝÒÔxml¸ñʽ·µ»Ø - MS-SQL Server / Ó¦ÓÃʵÀý

´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......

sqlserver´íÎó - MS-SQL Server / ÒÉÄÑÎÊÌâ

sqlserver2005 ½¨Á¢µÄÊý¾Ý¿â£¬ÓëÊÖ³Öpda´«ÊäÊý¾Ý£¬×î½üͻȻ³öÏÖÎÞ·¨´«µÝÊý¾ÝµÄÎÊÌ⣬pda¶ËÌáʾµÄ´íÎóʱoutofmemoryexception£¬µ«ÊÇpdaÉÏÃæµÄÈÝÁ¿Ã»ÓÐÎÊÌ⣬
sqlserverµÄÈÕ×ÓÉϵĴíÎóÈçÏ£º
ÈÕÆÚ 2010-1-25 14:45: ......

ÈçºÎʹÓÃMySQL - MS-SQL Server / »ù´¡Àà

¸Õ¸Õ½Ó´¥MySQL,²»ÖªµÀ¸ÃÈçºÎÈ¥²é¿´Êý¾Ý£¬²åÈëÊý¾Ý£¬´´½¨Êý¾Ý¿â¡¢±í£¬ÓÃÄÄΪǰ±²ÄÜÖ¸½ÌÒ»¶þ£¿

MySQL 5.1²Î¿¼ÊÖ²á

ÒýÓÃ
ÐÖµÜÄã»á½áÌùÂð£¿
mysql ²Î¿¼ÊÖ²á

baidu

MySQL¹Ù·½Îĵµ http://dev.mysql.com/doc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ