比如我有两张表
table1 字段 uname,age,address,school,
table2 字段 stuname,address.
1、我想把从table2中查询出数据插入到table1中,而且我想插入时加入一些默认数据,改怎么写呢,
如: insert into table1(uname,address,school) values(name 和address 从table2中查,school是一个固定值)
insert into table1(uname,address,school) select name,address,'北京大学' from table2