-2
SELECT student_subjects.student_id,student_subjects.subject_id,student_subjects.amount FROM student_subjects其中NOT EXISTS(SELECT從payment_history subject_id其中student_subjects.subject_id = payment_history.subject_id)如何下面的SQL查詢轉換爲yii2代碼
那麼你有什麼嘗試? – Justinas