我有这个查询(PostgreSQL 9.1):
=> update tbp set super_answer = null where packet_id = 18;
ERROR: syntax error at or near "="
Run Code Online (Sandbox Code Playgroud)
我不明白.我真的不在这里.
Table "public.tbp"
Column | Type | Modifiers
--------------+------------------------+-----------
id | bigint | not null
super_answer | bigint |
packet_id | bigint |
Run Code Online (Sandbox Code Playgroud)
事实证明我已经复制了一些白色的unicode角色而且Postgres不喜欢它.在Python控制台中:
>>> u'update "tbp" set "super_answer"=null where "packet_id" = 18'
u'update "tbp" set\xa0"super_answer"=null where "packet_id" = 18'
Run Code Online (Sandbox Code Playgroud)
生活有时会很奇怪.
| 归档时间: |
|
| 查看次数: |
3794 次 |
| 最近记录: |