블로그 옮겨욥!

넋두리 2011/04/01 12:06
정리도 안되고..
펌글도 많고.. 깔끔하게 정리하고 블로그 이사가요~

http://scaleup.tistory.com
Creative Commons License
Creative Commons License
Posted by 지오아빠^^
Tree구조를 가지는 데이타를 하나의 쿼리로 조회하고 싶은 경우가 있다.

Oracle에서는 connect by를 이용하면 간단히 구현되지만 MySQL에서는 조금 까다로운 것이 사실이다. 솔루션이 아래 URL에 잘 설명되어있다.

http://explainextended.com/2009/07/20/hierarchical-data-in-mysql-parents-and-children-in-one-query/
Creative Commons License
Creative Commons License
Posted by 지오아빠^^