摘要:
1、in 后面是记录集,如:select * from table whereuname in(select uname from user);2、in 后面是字符串,如:select * from table whereuname in('aaa',bbb','ccc','ddd','eee',ffff'');注意:这样写是错误的select * from table whereuname in('aaa,bbb,ccc,ddd,eee,ffff'),这里一定要将每个字符串用单引号' 阅读全文