1
Pythonアプリケーション内のPostgresデータベースに接続しようとしています。 私はpsycopg2ライブラリを使用しています。psycopg2のスキーマからデータを取得する
私はこのようなselect文を実行した場合:
cursor.execute("""select schema_name from information_schema.schemata;""")
rows = cursor.fetchall()
print(rows)
をし、私が取得:
[('DB_FZ',), ('DB_FZ_TEMP',), ...]
が、私は声明
cursor.execute("""select * from DB_FZ.d_results;""")
rows = cursor.fetchall()
print(rows)
を実行する場合、私は、エラー
psycopg2.ProgrammingError: schema "db_fz" does not exist
LINE 1: select * from DB_FZ.d_results;
を取得
何が間違っている可能性がありますか?