
This work is licensed under a Creative Commons Attribution-Share Alike 2.0 France License.
This is just for reference. I forgot the syntax already twice. The insert query does not work if you use parenthesis.
create table test ( a int , b int) ;
create table test1 ( c int) ;
insert into test1 values 1;
insert into test1 values 2;
insert into test1 values 3;
insert into test1 values 4;
insert into test (a,b) select c,0 from test1;
select * from test;
1|0
2|0
4|0
3|0
Recent comments
1 week 5 days ago
2 weeks 3 days ago
4 weeks 1 hour ago
7 weeks 2 days ago
15 weeks 11 hours ago
15 weeks 3 days ago
15 weeks 6 days ago
15 weeks 6 days ago
16 weeks 1 hour ago
16 weeks 1 hour ago