|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
因字段太多,而且都是必须的,命令太长,超出限制,有办法简化吗?谢谢
select "2004年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2004年$] union all
select "2005年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2005年$] union all
select "2006年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2006年$] union all
select "2007年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2007年$] union all
select "2008年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2008年$] union all
select "2009年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2009年$] union all
select "2010年" as 年,姓名 as 姓名查询,姓名,个人账号,"1月个人" as 1月个人,"1月集体" as 1月集体,"2月个人" as 2月个人,"2月集体" as 2月集体,"3月个人" as 3月个人,"3月集体" as 3月集体,"4月个人" as 4月个人,"4月集体" as 4月集体,"5月个人" as 5月个人,"5月集体" as 5月集体,"6月个人" as 6月个人,"6月集体" as 6月集体,"7月个人" as 7月个人,"7月集体" as 7月集体,"8月个人" as 8月个人,"8月集体" as 8月集体,"9月个人" as 9月个人,"9月集体" as 9月集体,"10月个人" as 10月个人,"10月集体" as 10月集体,"11月个人" as 11月个人,"11月集体" as 11月集体,"12月个人" as 12月个人,"12月集体" as 12月集体 from [2010年$] |
|