怎样把多列的内容变成多行的内容?(200分) select 'F1' F1,'F2' F2,'F3' F3,'F4' F4union allselect 'F5' F5,'F6' F6,'F7' F7,'F8' F8 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select f1,f2,f3,f4 from tableunion allselect f5,f6,f7,f8 from table?? select f1,f2,f3,f4 from tableunion allselect f5,f6,f7,f8 from table?? select f1,f2,f3,f4 from tableunion allselect f5,f6,f7,f8 from table?? select f1,f2,f3,f4 from tableunion allselect f5,f6,f7,f8 from table select F1,F2,F3,F4 from 你的表union allselect F5,F6,F7,F8 from 你的表 select F1,F2,F3,F4 from 你的表union allselect F5,F6,F7,F8 from 你的表 如何写语句直接把table1 f1 f2 f3 f4 f5 f6 f7 f8 直接 改成table2 f1 f2 f3 f4 f5 f6 f7 f8 是要更改表结构么?先将 select F1,F2,F3,F4 from 你的表 union all select F5,F6,F7,F8 from 你的表取得的值写入临时表然后将你的表删除建你的新表将临时表的数据倒回完成 还有,insert 表 f1,f2,f3,f4 (select f5,f6,f7,f8 from 表);alter table 表 drop column f5,f6,f7,f8 SQL语法抱错了 觅高手! Sql profiler捕获不到执行代码 如何去除一个字段的非空约束? 第一次玩SQL的统计,有点复杂,不知道怎么来实现? 读取sql 2005维护计划里面内容 如何提高查询速度? 在SQL Server安裝後,如之後有變更其對應電腦的名稱,對SQLServer應用方面會有哪些影響? 100分呀,很容易的,关于字段值自增的问题???????? 送分啦,走过路过不要错过啊,远程数据库数据同步问题 COLUMN REFERENCE 约束 是什么意思,在线等候 一个简单的关于链接字符串的问题...
union all
select f5,f6,f7,f8 from table??
union all
select f5,f6,f7,f8 from table??
union all
select f5,f6,f7,f8 from table??
union all
select f5,f6,f7,f8 from table
union all
select F5,F6,F7,F8 from 你的表
union all
select F5,F6,F7,F8 from 你的表
table2 f1 f2 f3 f4
f5 f6 f7 f8
先将 select F1,F2,F3,F4 from 你的表 union all select F5,F6,F7,F8 from 你的表
取得的值写入临时表
然后将你的表删除
建你的新表
将临时表的数据倒回
完成
insert 表 f1,f2,f3,f4 (select f5,f6,f7,f8 from 表);
alter table 表 drop column f5,f6,f7,f8