一点小总结(面试被虐很惨)

2017-10-29  本文已影响0人  米洛丶

select name from (select * from table1) as result

第一次筛选出来的结果要声明为一个新的alias.

解决方法: 使用insert into

insert into backup select * from table

解决办法: 用distinct去除重复数据

select distinct name from table

上一篇 下一篇

猜你喜欢

热点阅读