insert...select问题
table A
有字段:pkid, int, pk
age,int, not null
name,varchar(20), not null
table B
有字段:pkid,int,pk
name,varchar(20),not null
time,datetime,not null
问题:
i=20 to 30
将数值i插入table A的age
同时将所有table b中满足time-1983=i的所有记录插入table a
能否用insert……select语句来完成