I am setting up a couple of named queries to run a database. I have a table made, but when I try to execute the query below, I get an error saying invalid column index
This is the table I am trying to insert into
I have tried just about everything to try and get this to work, but can’t seem to fix the issue. Any ideas? We use oracle.
Double quotes delimit column names, table names, and other structural names (identifiers). Strings and other values that need delimiting use single quotes. Per the SQL standard, which Oracle follows closely. Other brands default to other quotes for identifiers and may tolerate double quotes for values. Oracle will not.
Further, Oracle handles unquoted identifiers as if entirely upper case. Other brands have various other behaviors when identifiers are not quoted. The standard requires that quoted identifiers be treated as case-sensitive, and all brands do, that I know.
OK, weird thing just happened. I had a bunch of commented out lines in the query I assumed didn’t do anything (my bad I guess). Deleted all of them and tried solution, that errored out with table or view does not exist. Then tried this
INSERT INTO FPI_DWELL_HISTORY
(WORK_ORDER)
VALUES
('123')
again, and it seemed to work. Any ideas why using the /* commenting method would cause it not to work?