postgres=# alter user postgres9.6 with password highgo123;
ERROR: syntax error at or near ".6"
LINE 1: alter user postgres9.6 with password highgo123;
^
postgres=# alter user 'postgres9.6' with password highgo123;
ERROR: syntax error at or near "'postgres9.6'"
LINE 1: alter user 'postgres9.6' with password highgo123;
^
postgres=# alter user "postgres9.6" with password highgo123;
ERROR: syntax error at or near "highgo123"
LINE 1: alter user "postgres9.6" with password highgo123;
^
postgres=# alter user 'postgres9.6' with password 'highgo123';
ERROR: syntax error at or near "'postgres9.6'"
LINE 1: alter user 'postgres9.6' with password 'highgo123';
# alter user postgres9.6 with password 'highgo123';
ERROR: syntax error at or near ".6"
LINE 1: alter user postgres9.6 with password 'highgo123';
^
Time: 0.366 ms
postgres=# alter user "postgres9.6" with password 'highgo123';
ALTER ROLE
博客围绕PostgreSQL更改用户密码展开,展示了多次尝试修改用户'postgres9.6'密码为'highgo123'的过程,前几次使用不同语法均报错,最终使用'alter user \postgres9.6\ with password \'highgo123\';'成功修改。
3212

被折叠的 条评论
为什么被折叠?



