SQL语句DML语句总结

查询:code

一、用一个表更新另外一个表SQL
UPDATE a,b set a.title = b.title where a.id = b.aid;
二、表中有多条数据取最新一条(子查询解决方案)
//select * from (select * from `test` order by `date` desc) `temp`  group by product_code order by `date` desc  效率太慢
相关文章
相关标签/搜索