Re: Exclusive Query
From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 09/10/04
- Previous message: Vishal Parkar: "Re: error: when insert into table"
- In reply to: Tarang Deshpande: "Re: Exclusive Query"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 11 Sep 2004 03:12:54 +0530
i dont know why it shouldn't work. are you getting any error?
see following example.
create table table1(id int)
create table table2(id int)
insert into table1 values(1)
insert into table1 values(2)
insert into table1 values(3)
insert into table2 values(1)
insert into table2 values(2)
INSERT INTO table2 ( id )
SELECT table1.id FROM table1 WHERE NOT EXISTS
( SELECT table2.id FROM table2 WHERE table1.id = table2.id )
-- Vishal Parkar vgparkar@yahoo.co.in | vgparkar@hotmail.com
- Previous message: Vishal Parkar: "Re: error: when insert into table"
- In reply to: Tarang Deshpande: "Re: Exclusive Query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|