| 发表于:2007-11-29 10:52:183楼 得分:0 |
可以设置@ 为结束符 db2 -td@ db2 => create table t_temp(id varchar(4),p_year int,p_month int) @ db2 => insert into t_temp with temp (id,p_year,p_month) as (values('001',2007,1) union all select id,p_year,p_month+1 from temp where p_month <12) select * from temp@ 测试没有问题 | | |
|