Hi,
I want to write a plsql script for a quick report with using ampersand symbol, “&”, as a character in the where clause in the code. But when run the report it gives me the error “Invalid member name.” How can I solve it?
Thanks You
Hi,
I want to write a plsql script for a quick report with using ampersand symbol, “&”, as a character in the where clause in the code. But when run the report it gives me the error “Invalid member name.” How can I solve it?
Thanks You
Best answer by Charith Epitawatta
Hi
If what you have is something similar to this:
WHERE name = 'Dungeons & Dragons'
You can replace it using the ASCII code for ampersand ‘chr(38)’ like this:
WHERE name = 'Dungeons ' || chr(38) || ' Dragons'
I tested this and it worked.
Hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.