Guest_imported
New member
- Jan 1, 1970
- 0
Hi
I am trying to insert multiple rows in a table( say table A) after select some of the fields from another table (say Table B) .But Table A has a primary key .
i can i use the format
insert into A
select x,y,z from B
I tried
insert into A
select (select max(id)+1 from A),y,z from B
but it doesn't work as probably it queries and sotres the resultset.
please help,
this is very urgent and imp for me.
appreciate ur help,
thanks in advance,
Amit
I am trying to insert multiple rows in a table( say table A) after select some of the fields from another table (say Table B) .But Table A has a primary key .
i can i use the format
insert into A
select x,y,z from B
I tried
insert into A
select (select max(id)+1 from A),y,z from B
but it doesn't work as probably it queries and sotres the resultset.
please help,
this is very urgent and imp for me.
appreciate ur help,
thanks in advance,
Amit