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? 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. Link to comment https://forums.phpfreaks.com/topic/228940-recursion-in-mysql/#findComment-1180144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.