如何一次性插入多行数据(急)

在SQL应用中
插入一行数据 (当a=1 b=27) 到 table
语句为:insert table (a,b) values (1,27)
但是如果b为返回值,b=(27,28,29,....)时却无法正常插入
请问该怎么插入?
[140 byte] By [seagods-小强] at [2008-2-13]
# 1
作一循环处理吧。
shxhark-泉 at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...
# 2
insert tablename (a,b)
select 1 as a,returnfieldname as b
from yourtable
where ...
Haiwer-海阔天空 at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...
# 3
这样就可以的!
petkoala-考拉 at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...
# 4
Haiwer(海阔天空)的可以
gejanry-gejanry at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...
# 5
如果insert触发器,要注意
georgehappy-欢猪 at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...
# 6
可以用进程来做,比较快
flyflyfly_woo-flyfly at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...
# 7
同意楼上的意见
eliuren-eliuren at 2007-10-24 > top of Msdn China Tech,MS-SQL Server,疑难问题...