gorm Unknown column stock_group_relationcode in on clause
This error message suggests that there is an attempt to join two tables on a column that does not exist in one of the tables. Specifically, the column "code" is not found in the "stock_group_relation" table.
To resolve this error, you should check the SQL query or the ORM code that generates the query and ensure that the column names and table names are correct. You may also need to check the database schema to ensure that the column exists in the appropriate table.
If the column is missing, you may need to add it to the table using an ALTER TABLE statement. Once the column is added, you should be able to join the tables without encountering this error.
原文地址: https://www.cveoy.top/t/topic/bnz8 著作权归作者所有。请勿转载和采集!