一点小总结(面试被虐很惨)
2017-10-29 本文已影响0人
米洛丶
-
二次查询
select name from (select * from table1) as result
第一次筛选出来的结果要声明为一个新的alias.
-
mysql不支持select into
解决方法: 使用insert into
insert into backup select * from table
-
mysql不支持top
解决办法: 用distinct去除重复数据
select distinct name from table