postgres数据库查询语法错误,明明没问题

寻梦csdn 2017-05-18 05:12:25
//第一次查询提示语法错误
beap=#
beap=# select a.beap_cutomer_id, a.unit_code from beap_customers as a, customer_status as b where a.beap_cutomer_id=b.customer_id and b.online_status=1 and a.unit_code like '4401%';
错误: 语法错误 在 "select" 或附近的
第1行select a.beap_cutomer_id, a.unit_code from beap_customers ...
^

//重写一遍select单词
beap=#
beap=# select a.beap_cutomer_id, a.unit_code from beap_customers as a, customer_status as b where a.beap_cutomer_id=b.customer_id and b.online_status=1 and a.unit_code like '4401%';
beap_cutomer_id | unit_code
-----------------+----------------
2013250 | 44011321102813
2004863 | 44010421104480
2005381 | 44010521103539
2004716 | 44010421104250
2005030 | 44011121142282
801040036 | 44010421112769
801140016 | 44011421113002
...全文
2010 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
#0xZ 2018-01-20
  • 打赏
  • 举报
回复
你粘上来的代码看是一样的(包括特殊符号)。可能就是有其他乱七八糟的字符。。。
rucypli 2017-05-24
  • 打赏
  • 举报
回复
应该是有乱七八糟的不可见字符

952

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧