-
二次查询
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
select name from (select * from table1) as result
第一次筛选出来的结果要声明为一个新的alias.
解决方法: 使用insert into
insert into backup select * from table
解决办法: 用distinct去除重复数据
select distinct name from table
本文标题:一点小总结(面试被虐很惨)
本文链接:https://www.haomeiwen.com/subject/mwjypxtx.html
网友评论