我想执行一个子查询,例如:
SELECT id, col1, col2 FROM table1 WHERE col1='val1' and col2 NOT IN ( SELECT ID FROM table2 WHERE col1='val1' and col3 = 'val3')
我如何使用GORM来执行它?
白衣染霜花
相关分类