postgresql – 使用PGAdmin连接到Heroku DB时出错
发布时间:2020-12-13 15:57:44 所属栏目:百科 来源:网络整理
导读:我按照说明操作了 Connect to a heroku database with pgadmin.什么可能导致以下错误? ERROR: column "*my database identifier*" does not exist. LINE 9: WHERE datname IN (*my database identifier*) 要清楚,我的数据库标识符是HerokuPostgres连接设置
我按照说明操作了
Connect to a heroku database with pgadmin.什么可能导致以下错误?
ERROR: column "*my database identifier*" does not exist. LINE 9: WHERE datname IN (*my database identifier*) 要清楚,我的数据库标识符是HerokuPostgres连接设置中“数据库”旁边列出的字母数字字符串. 解决方法
您忘记将标识符引用为字符串文字,因此PostgreSQL将其视为列名称 – 对于不存在的列.尝试:
WHERE datname IN ('my_database_identifier'); 请注意单引号. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |