|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Rolling back SQL transaction
Can some one help me related to .sql file issue. I have a .sqlfile and tried to read the file thru unix. In the .sqlfile I have error rows as well and when error comes I dont want to proceed further and need to roll back all the transactions. sample .sql file below Code:
insert into test values (9); update test set id=9 where id=10; updte test set id=3; insert into test values (1); insert into test values (1); I tried with "WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK" option also. Can some one help Last edited by radoulov; 06-28-2012 at 05:37 PM.. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Perhaps, if you start your own thread instead of hijacking another's. It's basic netiquette not to do that.
Regards, Alister |
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
Quote:
Thanks! |
| The Following User Says Thank You to radoulov For This Useful Post: | ||
alister (06-28-2012) | ||
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rolling Back an Update | Brandon9000 | Linux | 27 | 05-10-2012 08:11 PM |
| rolling back Technology Level | manoj.solaris | AIX | 2 | 01-24-2011 07:06 PM |
| Append transaction header lines to same transaction's detail lines | rookie12 | Shell Programming and Scripting | 3 | 06-18-2010 02:01 AM |
| Log Rolling | waaraa1331 | UNIX for Dummies Questions & Answers | 8 | 08-18-2008 06:37 PM |
| Rolling back time | Cameron | UNIX for Dummies Questions & Answers | 5 | 03-26-2002 08:31 AM |
|
|