![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We're in the midst of converting a system from Sybase to Oracle. This involves converting Sybase stored procedures to Oracle procedures and functions. We have a Sybase SP that inserts a line into a table. The syntax of the "insert" statement is: insert into cases values(@ldbNumber, @num, @submission) The actual values list is much longer, but the interesting thing is that there is no list of columns. Apparently this is legal in Sybase. |
|
When I run this insert statement in Oracle SQLDeveloper, I get ORA-00936: Missing Expression. Is this because there is no list of columns? Is that list required in Oracle but not in Sybase? |
#3
| |||
| |||
|
|
Did you remove the at signs in the Oracle version of the SP? |
#4
| |||
| |||
|
|
Robert Klemme <shortcut... (AT) googlemail (DOT) com> wrote: Did you remove the at signs in the Oracle version of the SP? Yes, they're gone, I don't know why I put them in the original post. The "ORA-00936: Missing Expression" appears whether or not the column list is in the insert statement. Three of the columns are named "name", "category", and "native". SQL Developer shows these in bold face when I include the column list in the insert statement. I don't think it has anything to do with the error, but what's up with that? They're not reserved words, I looked up a list of Oracle reserved words and none of them are on it. -- Tim Slattery Slatter... (AT) bls (DOT) govhttp://members.cox.net/slatteryt |
![]() |
| Thread Tools | |
| Display Modes | |
| |