You have to mask the single quote: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS Von: Wen Yi <896634148@xxxxxx> Hi team, when I learn the postgres, I try to store the ' into the database,
but something unexpected happend. postgres=# CREATE TABLE test (str varchar); And I do another test postgres=# SELECT '''; Is there a bug in psql? Yours, Wen Yi |