How do I insert a record in a column having varchar data type having single quote in it?
Example: first name is ROBERT
and last name is D'COSTA
How do I insert a record in a column having varchar data type having single quote in it?
Example: first name is ROBERT
and last name is D'COSTA
I found the above answer giving an error with Oracle SQL, you also must use square brackets, below;
SQL> SELECT Q'[Paddy O'Reilly]' FROM DUAL;
Result: Paddy O'Reilly
Use single quote in oracle 12 C.
Use two single-quotes
Alternatively, use the new (10g+) quoting method: