如何使用 GORM 对具有不同名称的字段引用执行连接查询,如下所示:
SELECT * FROM tickets JOIN ticket_details ON tickets.ticket_id = ticket_details.ticket_id JOIN users ON tickets.create_user = users.user_id JOIN employees ON users.employee_id = employees.employee_id
tickets.create_user = 没有外键的users.user_id
烙印99
相关分类