日期:2014-05-17 浏览次数:20568 次
create database db1 use db1 GO CREATE TABLE table1( tid int not null, tname varchar(50) not null, tvalue varchar(50) not null) GO CREATE TABLE table2( tid int not null, tname varchar(50) not null) GO insert table2(tid,tname) select 1,'数据1' union select 2,'数据2' union select 3,'数据3'
insert into table1 select *,'你的默认值' from table2