【发布时间】:2017-05-14 18:03:22
【问题描述】:
我是 PostgresSQL 的新手。我试过了
select * from employee where employee_name="elina";
但结果错误如下:
ERROR: column "elina" does not exist.
然后我尝试用单引号替换双引号,如下所示:
select * from employee where employee_name='elina';
结果很好..那么postgresql中的单引号和双引号有什么区别。如果我们不能在postgres查询中使用双引号,那么在postgreSQL中这个双引号是否还有其他用途?
【问题讨论】:
-
单引号是字符串常量的正确分隔符。期间。
-
如有疑问,请阅读手册:postgresql.org/docs/current/static/…
标签: sql postgresql