1 UPDATE <table_name><alias>
2 SET (<column_name>,<column_name>) = (
3 SELECT (<column_name>, <column_name>)
4 FROM <table_name>
5 WHERE <alias.column_name>= <alias.column_name>)
6 WHERE <column_name><condition><value>
select id, name from users where id in (1, 2, 3, 4) // 按id查select id, name from users where name in ("kay", "meimei") // 按用户名查
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)