Your Question
"使用 Group 条件可以更轻松的编写复杂 SQL"得不到正确的sql代码;
我参考的文档是:https://gorm.io/zh_CN/docs/advanced_query.html#%E5%AD%90%E6%9F%A5%E8%AF%A2
问题如下:
我在db后面加个.Table("f_quoted_price") 改变下table名,就不能得到正确的sql语句。见下图:
如果采用默认的table就可以得到正确的sql语句。见下图:
The document you expected this should be explained
Expected answer
Comment From: philhuan
可以看下这个https://gorm.io/zh_CN/docs/method_chaining.html