m0_46685009
2021-12-24 10:12
采纳率: 52.5%
浏览 9

python连接postgresql表没有权限

连接数据库连上了,但执行sql语句连接表说没有权限

conn=psycopg2.connect(database="aigdb",user="wlaigadmin",password="wlaigadmin",host="localhost",port="5432")
cur = conn.cursor()
#sql = "SELECT USER"
sql = "SELECT * FROM machine_data limit 9"
cur.execute(sql)
permission denied for table machine_data


2条回答 默认 最新

相关推荐 更多相似问题