Can anyone help with solving following Oracle SQL Errors: (E26_0002) & (ORA-00936)? Below is my script
SELECT Number, ID, NAME, JUDGE, MODIFY_DATE, FROM Mine WHERE Number IN (‘221130G32’)
Thanks!
I added commas where they were missing and it still didn't help.
Remove a comma in front of the
from
keyword (but that's a minor mistake). There seems to be a worse one.Column name can't be
Number
; that's a reserved word (for datatype).It can be, but only if you enclose its name into double quotes, but then you have to reference that column using double quotes and exactly the same letter case every time (and that would be really bad idea):
As condition you used clearly says that column's contents is a string, then rename the column and use appropriate datatype.
Anyway, presuming that column name really is
Number
, then you'd