表 product
表里的字段为 id,productnameid为int型 productname为varchar型要搜索ID值为1和2的sql语句我用
select * from product where id in(1,2)
那如果我想搜索productname值为 aaa和bbb的值的记录应该怎么写sql语句
我用select * from product where productname in(aaa,bbb)这种语句不行啊