I want to know if is there recursive procedures in MySql and how can I implement them
+1
A:
By default, recursion is disabled because it does affect things like required thread stack space in the server and so on. You can allow recursion by setting the max_sp_recursion_depth server variable, but I would highly discourage it.
Dean Harding
2010-03-29 00:36:33