狂徒贼装备选择:一句sql语句帮忙挑错??

来源:百度文库 编辑:高校问答 时间:2024/07/13 21:24:23
create table temp_emp as (select distinct * from yghistory)
在查询分析器中,提示as附近有语法错误?????

你是要select distinct * from yghistory的结果存入另外一张表temp_emp?
那你这样好了:
select distinct * into temp_emp from yghistory