Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

q operator understanding

User_LCHKLNov 24 2015 — edited Nov 24 2015

I am using q'(...)', but in the string also i have () but it not throwing any error

but when i check in google i got below statement regarding q operator.

Syntax:

The syntax is q'[...]', where the "[" and "]" characters can be any of the following as long as they do not already appear in the string.

!

[ ]

{ }

( )

< >

query:

  SELECT q'(SELECT count(*) FROM employees WHERE last_name = 'Smith';)' 

  FROM dual; 

 

  My question is why it not throwing error

This post has been answered by Frank Kulash on Nov 24 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2015
Added on Nov 24 2015
6 comments
22,250 views