SQL 2005:下面的SQL语句在运行时,报in处有语法错误,请问该怎么改?

来源:百度知道 编辑:UC知道 时间:2024/06/17 11:32:06
insert into Student(S_no,S_name,S_sex) select a,b,c from Student in '"&Server.MapPath(".")&"\SQL.mdb"&"'

insert into Student(S_no,S_name,S_sex) select a,b,c from Student where s_no in ('1','2','3');

--1,2,3表示s_no列值,a,b,c表示列名。

in前面 没有列名啊.
正确的in语法是: when 列名 in ...

select * from album where id in (1,2,3,4,5,6)