728x90 반응형 SMALL MYSQL subquery limit1 mysql subquery limit 사용하기 일반적으로 mysql 에서 subquery 에 limit 을 두면 오류가 발생한다.ex) select count(*) from (select passwd from test where id = 'aaa' limit 3)tmp 이럴 경우 limit 절을 감싸고 alias 를 사용하게 되면 subquery 에서도 limit 을 사용할 수 있다.ex) select count(*) from( select * from ( select passwd from test where id = 'aaa' limit 3)as t)tmp 2013. 12. 24. 이전 1 다음 728x90 반응형 LIST