쿼리A
SELECT * FROM article LIMIT 10;
쿼리B
SELECT article.* FROM article LEFT JOIN member ON article.user_id = member.user_id LIMIT 10;
쿼리B 실행시 에러 발생
SQL 오류 (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'member ON article.user_id = member.user_id LIMIT 10' at line 1uery
아무리 봐도 어디가 틀린지 잘 모르겠습니다.
|
답변 3개 / 댓글 1개
채택된 답변
+20 포인트
내가누구야
4년 전
Copy
SELECT a.* FROM `article` a LEFT JOIN `member` b ON a.user_id = b.user_id LIMIT 10;
답변에 대한 댓글 1개
4년 전
mysql version 확인해 보세요.
4년 전
Copy
SELECT article.* FROM article LEFT JOIN member ON article.user_id = member.user_id where 1 LIMIT 10;
답변을 작성하려면 로그인이 필요합니다.