Home Privacy Policy Feedback Link to us Site Map

Oracle/PLSQL: ORA-01756 Error


Error:

ORA-01756: quoted string not properly terminated

Cause:

You tried to execute a statement that contained a string that was not surrounded by two single quotes. One of the quotes was entered without the second accompanying quote.

Action:

The options to resolve this Oracle error are:
  1. Rewrite the statement so that the string is surrounded by two single quotes.

For example, if you had tried to execute the following SELECT statement:

SELECT supplier_id, supplier_name
FROM suppliers
WHERE supplier_name = 'IBM;


You would receive the following error message:


You can correct this SQL statement by surrounding the string (ie: IBM) with two single quotes as follows:

SELECT supplier_id, supplier_name
FROM suppliers
WHERE supplier_name = 'IBM';