This sql in code:
SELECT QHR,
DECODE(DUCKBILLID1,NULL,' ',DUCKBILLID1) "DB1",
DECODE(DUCKBILLID2,NULL,' ',DUCKBILLID2) "DB2",
DECODE(DUCKBILLID3,NULL,' ',DUCKBILLID3) "DB3"
FROM PLATYPUSSCHEDULE
WHERE PLATYPUSID = :ABCID AND DOW = :DOW
…fails with “FROM keyword not found where expected“
The same exact thing (except that the quotes around DBN are single quotes in c# code and double quotes, AS SHOWN ABOVE, in TOAD) works just fine in TOAD.
In C# I’d expect to see something like
or
I certainly wouldn’t expect to see single and double quotes swapped over.