MySQL Forums
Forum List  »  Stored Procedures

Re: Stored procedures utility library
Posted by: Jan Kneschke
Date: November 29, 2005 04:28AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
5607
November 21, 2005 03:41AM
2648
November 21, 2005 04:39AM
2401
November 21, 2005 05:13AM
2520
November 21, 2005 08:00AM
2664
November 21, 2005 06:53AM
2574
November 21, 2005 08:06AM
2389
November 21, 2005 08:32AM
7691
November 23, 2005 11:24AM
2506
December 03, 2005 08:37AM
2411
November 28, 2005 02:26AM
Re: Stored procedures utility library
2495
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.