• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

operator IN and NUMBER

 
Grace Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it allowed to run a query like

select * from table_name where table_name.col1 IN (1, 5, 18, 36);

It throws the ORA-00920 when in a PL/SQL procedure.
 
Jan Cumps
Bartender
Posts: 2599
12
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That should work.
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the whole of your procedure.

Note that plain select * is not supported in a procedure, but that should trigger the P.LS-00428 error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic