左外側結合を使用します:
SELECT b.id as id, g.date
FROM `biometrics` as b
LEFT OUTER JOIN `users goals` as g ON biometricid = b.id and userid = $user->id
さまざまな結合タイプの良い例は、ここ> 。
左外側結合を使用します:
SELECT b.id as id, g.date
FROM `biometrics` as b
LEFT OUTER JOIN `users goals` as g ON biometricid = b.id and userid = $user->id
さまざまな結合タイプの良い例は、ここ> 。