Use two single-quotes
SQL> SELECT 'D''COSTA' name FROM DUAL;
NAME
-------
D'COSTA
Alternatively, use the new (10g+) quoting method:
SQL> SELECT q'$D'COSTA$' NAME FROM DUAL;
NAME
-------
D'COSTA
More Related Contents:
- Escaping ampersand character in SQL string
- Oracle SQL escape character (for a ‘&’)
- How to insert a string which contains an “&”
- How do I limit the number of rows returned by an Oracle query after ordering?
- When do I need to use a semicolon vs a slash in Oracle SQL?
- LISTAGG in Oracle to return distinct values
- Fetch the row which has the Max value for a column
- Oracle SQL: Update a table with data from another table
- Is there an Oracle SQL query that aggregates multiple rows into one row? [duplicate]
- Using ‘case expression column’ in where clause
- SQL Error: ORA-00933: SQL command not properly ended
- CASE vs. DECODE
- Convert a string date into datetime in Oracle
- WHERE IN condition not accepting String value
- Check if current date is between two dates Oracle SQL
- Benefits Of Using SQL Ordinal Position Notation?
- Unordered results in SQL
- Oracle Dynamic Pivoting
- create custom function for date difference excluding weekends and holidays in oracle sql
- What is it exactly a BLOB in a DBMS context
- Custom Order in Oracle SQL
- How do I list all tables in a schema in Oracle SQL?
- oracle sql: update if exists else insert [duplicate]
- Compare Strings ignoring accents in SQL (ORACLE)
- What does a (+) sign mean in an Oracle SQL WHERE clause? [duplicate]
- Subtracting Dates in Oracle – Number or Interval Datatype?
- Retrieve Oracle last inserted IDENTITY
- Using bind variables with dynamic SELECT INTO clause in PL/SQL
- Why are aggregate functions not allowed in where clause
- Insert into from CTE