4
저는 MySQL을 처음 사용했지만 구문에 문제가 있습니다.MySQL - 하위 쿼리에 별칭 구문을 추가하는 방법
이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 'as t' at line 1
IN 절 작동 :
SELECT batchid
FROM (SELECT distinct batchid, date_format(uploaddate, '%Y-%m-%d')
FROM table1
WHERE uploaddate > '2011-01-26') AS t
내 문제는 두 번째 테이블 별칭 함께 할 수있는 뭔가가 생각 날이 오류를 제공
SELECT a, b, c, d, e
FROM table1
WHERE status = 'skipped'
AND batchid IN (SELECT batchid
FROM (SELECT distinct batchid, date_format(uploaddate, '%Y-%m-%d')
FROM table1
WHERE uploaddate > '2011-01-26') AS t
) AS t;
:이 쿼리를 . 누군가 내가 잘못하고있는 것을 보여줄 수 있습니까?
그게 전부입니다. 감사! – sdoca