sqlines icon indicating copy to clipboard operation
sqlines copied to clipboard

Informix to PG: fail to convert double-quote used for literal values

Open strk opened this issue 7 years ago • 0 comments

In informix you can use double-quotes to wrap literal values containing single quotes, but in PostgreSQL double-quotes are only for identifiers, never for literal. In PostgreSQL you can use dollar-quoting if you want to include single-ticks in a string, like:

SELECT $$I can use ' here$$

strk avatar Mar 26 '18 14:03 strk