Cause: org.postgresql.util.PSQLException: ERROR: column province_id does not exist
生活随笔
收集整理的这篇文章主要介绍了
Cause: org.postgresql.util.PSQLException: ERROR: column province_id does not exist
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
数据库中的表bs_province如图所示:
SQL语句:
select PROVINCE_ID, PROVINCE_CODE, PROVINCE_NAME, SHORT_NAME, LNG, LAT from bs_province 报错:Cause: org.postgresql.util.PSQLException: ERROR: column "province_id" does not exist直接在数据库中进行查询,也提示:
解决办法:
在每个字段上加上双引号:
select "PROVINCE_ID", "PROVINCE_CODE", "PROVINCE_NAME", "SHORT_NAME", "LNG", "LAT" from bs_province
执行结果如图:
总结
以上是生活随笔为你收集整理的Cause: org.postgresql.util.PSQLException: ERROR: column province_id does not exist的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 集合对比
- 下一篇: android通过webservice连