700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Cause: org.postgresql.util.PSQLException: ERROR: column province_id does not exist

Cause: org.postgresql.util.PSQLException: ERROR: column province_id does not exist

时间:2019-03-28 21:11:22

相关推荐

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

执行结果如图:

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。