我们将数据库从sqlite3迁移到postgreSQL。现在,在下面的一行中,我们得到一个错误: sql = "SELECT id FROM configtables WHERE parent= 'check' AND parentid = " + id.to_s return nil if results.emptyr
PostgreSQL 11.5import psycopg2
connection = psycopg2.connect(user = "postgres#creates a cursor object which allows us to execute PostgreSQL commands through python#creates a cursor object which allows us to execute PostgreSQL commands through