Re: Stored procedures utility library
Hi Giuseppe,
I've just finished my tree-functions using dynamic SQL. I promissed to finished them at the MySQL UC 2005 and it took some time until MySQL was ready.
For SPs it is easily possible to use id, parent_id relations which perform well in all read and write cases. Before 5.0 you had to use nested sets which are good for reading, but bad for modifcations on the tree or the full-path which had the limitation in depth.
Perhaps you want to intergrate them:
* sp_tree_depth
* sp_tree_get_subnodes
* sp_tree_get_parent
* sp_tree_delete_subnodes
* sp_tree_delete_node
* sp_tree_move_subnodes
* sp_tree_move_node
You can find it at
http://jan.kneschke.de/projects/mysql/sp/#14
regards,
Jan
Subject
Views
Written By
Posted
6007
November 21, 2005 03:41AM
2819
November 21, 2005 04:39AM
2556
November 21, 2005 05:13AM
2723
November 21, 2005 08:00AM
2891
November 21, 2005 06:53AM
2782
November 21, 2005 08:06AM
2584
November 21, 2005 08:32AM
7972
November 23, 2005 11:24AM
2655
November 29, 2005 10:36PM
2695
December 03, 2005 08:37AM
2572
November 28, 2005 02:26AM
Re: Stored procedures utility library
2670
November 29, 2005 04:28AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.