select t.*from talk twhere t.user_id = 2Unionselect t.*from talk t, user_contact cwhere c.user_id = 2 and c.contact_type = 1 and c.be_user_id = t.user_id不想使用 Union 也不想去重,有沒有最簡單的寫法?hibernate不支持Union可不可以使用內(nèi)連接和左連接 實現(xiàn)呢?
添加回答
舉報
0/150
提交
取消