create table #mayong as (select distinct* from dbo.Customers); 明明是对的,就是报错?? create table #mayong as (select distinct* from dbo.Customers)报错:消息 156,级别 15,状态 1,第 1 行关键字 'as' 附近有语法错误。就这么一句,SQl就是报错,错啊了?是网上的代码啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct * into #mayong from dbo.Customers select distinct * INTO #mayong from dbo.Customers 难道create table #mayong as 是错的???不可能吧,网上教程上写的 (1)通过建立临时表来实现 SQL>create table temp_emp as (select distinct * from employee) SQL> truncate table employee; (清空employee表的数据) SQL> insert into employee select * from temp_emp; (再将临时表里的内容插回来)出自:http://www.pconline.com.cn/pcjob/other/data/others/0508/693592_1.html select * into #mayong from (select distinct * from dbo.Customers) a select distinct * into #mayong from dbo.Customers 这个不会是SQLMSSQL没有这个语法。 那是mysql不是t-sql语法上有差异 @@ROWCOUNT 为0 的问题 为什么order by没效果 请问having语句是不是一定要有group by语句才能使用? 高版本数据库附加低版本mdf文件出错 ASP程序的后台SQL Server数据很慢,常出如下错误: 随机选取多条数据记录的存储过程 top新手问题!!! 如何从getdate()获得11:29 这个时间呢? 请教触发器 求助:如何根据当前日期选择学期?具体见帖子。 SQL 中 [全文索引] 与 [字典] 都是作什么的? 求查询sql语句
出自:http://www.pconline.com.cn/pcjob/other/data/others/0508/693592_1.html
MSSQL没有这个语法。
不是t-sql
语法上有差异