更新列值PostgreSQL [英] Update column value PostgreSQL
本文介绍了更新列值PostgreSQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更新与某个 userid
匹配的列的值,但是它一直在给出语法错误。
I am trying to update the value of a column where it matches a certain userid
, but it keeps giving a syntax error.
UPDATE user
SET balance = 15000.000000000
WHERE id = 11203;
称为用户的表有两行很多行,余额
和 id
。我正在尝试在代码中编辑用户ID的余额。
The table called user has many rows with two columns, balance
and id
. I am trying to edit the balance of the user id in the code.
推荐答案
尝试用户,或者给出更通用的名称名称:
Try "user", or give a more generic name:
UPDATE "user"
SET balance = 15000.000000000
WHERE id = 11203;
或 ALTER
您的表名改为 user_list 例如。如有疑问,请检查
关键字
or ALTER
your table name to "user_list" for example. Any doubt, please check
keywords
这篇关于更新列值PostgreSQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文