°Ñµ±Ç°Êý¾Ý¿âÖбíµÄÊý¾Ý µ¼³É insert into Óï¾ä
±ÈÈç µ±Ç°Êý¾Ý¿âÖÐÓÐÒ»°ÙÌõÊý¾Ý
ÎÒÈçºÎÄÜ ÈÃSqlServer ×Ô¶¯´´½¨Ò»°Ù¸ö insert into Óï¾ä
µ±È» ÓÐ union Ò²¿ÉÒÔ
Âé·³¸÷λ°ï°ïæÁË
SQL code:
SELECT * INTO TB from TBB
?
ÓбØÒªÕâÑùÂ𡣡£
Ôõô×öµ½ÄØ
µ¼³ÉÍⲿµÄÎļþ
100ÐÐÊý¾Ý£¬100¸öinsert£¿
Èç¹ûlzÒªµ¼ÈëÊý¾ÝµÄ»°£¬ÅúÁ¿Ò²¾Í¿ÉÒÔÁË°¡£¡
Ò»ÌõÒ»¸öinsert£¬Ã»ÓбØÒªµÄ˵...
ÎÒÒªµ¼³ÉÍⲿµÄÎļþ ´ò°üµÄʱºò ʹÓà ½Å±¾´´½¨Êý¾Ý¿â ´´½¨±í ²åÈëÊý¾Ý
????
http://blog.csdn.net/feixianxxx/archive/2009/07/21/4365576.aspx
ÔÚÒ»¸öÎļþÖÐ º¬ÓÐ
insert into values ····
È»ºó´ò°ü °²×°µÄÊÇ Ö´ÐÐ ÕâЩÓï¾ä
EXEC master..xp_cmdshell 'BCP NTS.dbo.T_User out c:\User.txt -c -U"sa" -P"password"'
¼òµ¥µÄ
Ïà¹ØÎÊ´ð£º
Ҫת³ÉÒ»ÑùµÄЧ¹û£¬ÓÃpowerdesignerÔõôת£¿ÄÜתÂð£¿
create table publishers (
publisherID int identity,
publisherName varchar (30) NOT NULL,
constraint pk_publishers primary key (publisherID)
)& ......
sqlserver 2005
ÏûÏ¢ 8152£¬¼¶±ð 16£¬×´Ì¬ 14£¬µÚ 1 ÐÐ
½«½Ø¶Ï×Ö·û´®»ò¶þ½øÖÆÊý¾Ý¡£
Óï¾äÒÑÖÕÖ¹¡£
ÎÒÈ·¶¨²åÈëµÄÊý¾Ý¶¼·ûºÏÒªÇó ÒòΪÎÒÔÚjspÒ³Ãæ ÓÃÏàͬµÄÊý¾ÝÌá½»³É¹¦µ½Êý¾Ý¿â ¶øÎÒÔÚÊý¾Ý¿âдinser ......
ÎÒÒ»¸öÏîÄ¿ÀïÒªÁ¬½ÓSQLserverºÍORACLEÁ½¸öÊý¾Ý¿â£¬
·â×°ÀàÀïÃæÓõÄÊÇusing System.Data.OleDb; £¨±¾ÈËÓõÄÊÇC#£©
ÏëÄDzÙ×÷ÕâÁ½¸öÊý¾Ý¿âµÄÀà·â×°ÔÚÒ»Æ𣬠ÈçºÎ×öÄØ£¿ ÓÐûÄÄλÓÐдºÃÁ˵ģ¿
Óù¤³ ......
¼ÙÉèÎÒµÄÊý¾Ý¿âÊÇ·ÅÔÚµçÄÔAÀ¶øÍøÕ¾·ÅÔÚµçÄÔBÀÄÇÎÒÏÖÔÚÒªÊÇÏ뱸·ÝµçÄÔAÉϵÄÊý¾Ý¿âµ½µçÄÔBµÄ´ÅÅÌÀÎÒ¸ÃÔõô×ö£¿Ï£Íû´ó¼Ò¸ø°ï°ï棬×îºÃÄܸø¸ödemo¡£ÎÒÓÊÏäÕ˺ţº952378159@qq.com ÏÈлл¸÷λÁË°¡£¡
ÓкܶàÖÖ· ......