the following sql statement works when i use like this
Dim CmdStr As String = "insert into table1(id,name,ref,amount) select id,name,ref,amount from table where name = A"
How do i use the statement multiple times to insert into multiple tables like this
Dim CmdStr As String CmdStr= "insert into table2 (id,name,ref,amount) select id,name,ref,amount from table where name = B" CmdStr="insert into table3 (id,name,ref,amount) select id,name,ref,amount from table where name = C" CmdStr="insert into table4 (id,name,ref,amount) select id,name,ref,amount from table where name = d"
This post has been edited by Atli: 06 July 2012 - 02:48 AM
Reason for edit:: Please use [code] tags when posting code.

New Topic/Question
Reply


MultiQuote




|