Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing a sql having Single quotes in it....
#1
I want to execute a sql which is having single quotes in it....

sql = " select 'update '||column_name||' ' from all_tab_columns "

Since i have used the single quote inside the query, part of the query is commented due to singel quotes. Is anyway we can execute the query?

Please advice on this....


Thanks,
Venkatesh
Reply
#2
Yes..You can do it easily

ADD DOUBLE " " AND IN IT..YOU WILL HAVE SINGLE QUOTE..

EXAMPLE

"SELECT FIRSTNAME FROM LEARNQTP WHERE NAME = 'QTPScript'"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP Closes while executing the script sowmya 4 3,404 11-22-2011, 08:03 PM
Last Post: krr

Forum Jump:


Users browsing this thread: 1 Guest(s)