SQL 服务器用 where 子句插入
SQL Server Insert with where clause
我有这样的查询:
Insert into Table1 (Code)
Values ('ss23')
Where Table1.sequence between '0' and '999'
我收到以下错误:
Incorrect syntax near the keyword 'where'.
使用 insert
将新数据插入您的 table。但是您宁愿更新现有数据。为此使用 update
update Table1
set code = 'ss23'
Where sequence between 0 and 999
我有这样的查询:
Insert into Table1 (Code)
Values ('ss23')
Where Table1.sequence between '0' and '999'
我收到以下错误:
Incorrect syntax near the keyword 'where'.
使用 insert
将新数据插入您的 table。但是您宁愿更新现有数据。为此使用 update
update Table1
set code = 'ss23'
Where sequence between 0 and 999