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
6160
November 21, 2005 03:41AM
2878
November 21, 2005 04:39AM
2618
November 21, 2005 05:13AM
2789
November 21, 2005 08:00AM
2955
November 21, 2005 06:53AM
2855
November 21, 2005 08:06AM
2643
November 21, 2005 08:32AM
8049
November 23, 2005 11:24AM
2728
November 29, 2005 10:36PM
2789
December 03, 2005 08:37AM
2647
November 28, 2005 02:26AM
Re: Stored procedures utility library
2733
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.