0

I am running the query:

UPDATE lookup 
    set label = 'ATM' 
where id in (select id 
                from lookup 
                where option_type = 'put' 
                and label = 'OTM' 
                order by strike_price desc 
                LIMIT 1
            ) 

which gives the error:

Query 1 ERROR: This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
Volatil3
  • 14,253
  • 38
  • 134
  • 263

0 Answers0