Cyclical recursion in MySQL that can be used for DFS or BFS
Just wanted to share these blogs, http://guilhembichot.blogspot.com/2013/11/with-recursive-and-mysql.html http://blogs.msdn.com/b/sqlazure/archive/2010/07/01/10033575.aspx http://ilyasterin.com/blog/2014/01/cyclical-dependency-detection-in-the-database.html Cheers ;-)