0
我試圖一次插入大量行到2列表中,其中一個值保持不變。這是我曾嘗試: -將多行插入到SQL中
insert into testtable (value1,value2)
select
123,
(SELECT [title] FROM [dbo].[images])
這給了我下面的錯誤:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
我可以一次插入每行一個,但我不知道是否有一種方法時I g =可以一口氣完成整件事。