반응형
서브쿼리를 짜던 중 오류 발견
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 0, 200' at line 2
이런 식의 오류
알고 보니 서브쿼리를 사용하면 별칭을 안 붙였을 때 자동으로 limit이 붙는다던가..?
그래서 as a 이런식으로 별칭을 주니 잘 나온다!
반응형
'공부 > SQL' 카테고리의 다른 글
| [MSSQL] DATETIME CONVERT (0) | 2023.07.07 |
|---|---|
| 가장 최근 날짜 쿼리 조회 (0) | 2022.10.26 |
| mybatis 날짜 사이 조회 쿼리 문 (0) | 2022.07.01 |
| Error 1064(42000) : 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 '' at Line 4 (0) | 2022.06.28 |
| Column: 'Column_Name' in where clause is ambiguous 오류 (0) | 2022.06.28 |