keevitaja Posted February 26, 2011 Share Posted February 26, 2011 Hi, i have table with following columns: id, parent_id is possible to count all siblings and print all siblings with out any help from php with recursion? is there a mysql statement for that... or can't i do it without php? Quote Link to comment https://forums.phpfreaks.com/topic/228940-recursion-in-mysql/ Share on other sites More sharing options...
fenway Posted February 26, 2011 Share Posted February 26, 2011 This is a classical question -- using "parent_id" makes it impossible to traverse the entire tree without a stored procedure or some psychic knowledge. Quote Link to comment https://forums.phpfreaks.com/topic/228940-recursion-in-mysql/#findComment-1180144 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.