Small gotchas wrt. Oracle and SQL syntax

1 Dec
2004
1 Dec
'04
2:06 p.m.
Hi, Stumbled over some small gotchas regarding SQL syntax and Oracle 9 today. Here's the error message: ORA-00933: SQL command not properly ended (DBD ERROR: error possibly near <*> indicator at char 26 in 'SELECT st.id FROM ticket <*>as st WHERE st.ticket_state_id IN ( 7, 8 ) '), SQL: 'SELECT st.id FROM ticket as st WHERE st.ticket_state_id IN ( 7, 8 ) ' The problem is the "From column as foo" construct. The "as" in there is optional in PostgreSQL and MySQL (according to the web documentation), but not allowed in Oracle. So I removed them: Regards, -- Kristoffer.
7562
Age (days ago)
7562
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kristoffer Gleditsch