|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Oracle: how to execute multiple UPDATE statements as script?
I have a script that executes INSERT INTO statements; it works fine. Recently I added some update statements at the end, and they do not work for some reason. Here is some sample SQL:
Code:
INSERT INTO Table1 (col1, col2, col3) values ('a', 'b', 'c');
INSERT INTO Table1 (col1, col2, col3) values ('a', 'b', 'c');
UPDATE Table 1
SET col1 = "c"
WHERE col1 = "a"
UPDATE Table 1
SET col2 = "b"
WHERE col1 = "c"
UPDATE Table 1
SET col3 = "a"
WHERE col1 = "b"
commit;
Do I have to alter the syntax of the update statements? |
|
#2
|
|||
|
|||
|
problem solved. I needed to add a semicolon (
at the end of each line ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Oracle: how to execute multiple UPDATE statements as script? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|