on 09-08-2009 2:27 PM
Hi,
I must use more than one Insert Into Statement at the same time.
What must it be placed between Insert Into statements?
String x = "Insert Into(...) Values(...)? Insert Into(....) Values(.....)";
What must be replaced with "?" ?
Thanks.
String x = "Insert Into(...) Values(...)? Insert Into(....) Values(.....)";
STRING ???
You are kidding are you?
What programming language are you using here?
And what exactly is your requirement?
Running multiple INSERTs in a single transaction?
To do that, just open a connection with autocommit off,
prepare and execute all your INSERT-Statements
(you'll want to use BIND variables and not STRING concatenation for that. Ever heard of SQL injection?),
and finally you commit or rollback your transaction.
Voilá.
regards,
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.