Z
Z
zeng1242022-02-19 14:29:03
Python
zeng124, 2022-02-19 14:29:03

When I write a postgresql query, it does not see the foriengKey column, how can I make it see it?

Having made two tables in Python and writing foriengkey in the second table, I make the following query

with connection.cursor() as cursor:
        sql = "INSERT INTO waldberiss_ozon_Test(title) VALUES ('что-то')"
        cursor.execute(sql)

What I get an error column "title" in the table "waldberiss_ozon_test" does not exist. Although it is clearly spelled

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question