sql - Why am I getting "missing right parenthesis" for this query? -


this query seems legit, don't understand why i'm getting error:

sql error: ora-00907: missing right parenthesis 00907. 00000 -  "missing right parenthesis" 

query:

update "props" set "props"."flagged" = null "props"."id"   in   (select "props"."id"   "props"   inner join "pins"   on "props"."pin_id"            = "pins"."id"   "pins"."circuit_spec_id" = 10248   , "props"."flagged"          = 'warn'   order pins.pin_type_id asc); 

oracle doesn't allow order by in subqueries. allowed in subqueries in from clause. otherwise, using rownum first value doesn't work. apparently, doesn't work in in clause.

sadly, poorly documented. on page documenting in, specifies subquery allowed. on page documenting select, subqueries seem allowed have order by clause. not sure if error in documentation or misreading it. in case, order by in context wouldn't doing anything.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -