using single quote in pl/sql
271944Apr 26 2005 — edited Apr 27 2005I have a procedure that needs to execute a dynamic query.
here is my brief code.
sql_stmt := 'select * from test where default = '|| gc_default || ';
this is just a part of my code. but the problem is that default column is varchar, so the "gc_default" variable should be wrapped with single quote. it should be like this. select * from career where job = 'DEFAULT';
does anybody know?
Thanks in advance.