postgres 常用命令

  1. 连接数据
    psql -h localhost -U postgres

  2. 查看
    select * from sentry_useroption

  3. 删除
    delete from sentry_useroption where id = 5