Adding New Procedures to MySQL
==============================
We have created an example procedure in MySQL Version 3.23 to show you
what can be done.
Additionally we recommend you to take a look at `mylua'. With this you
can use the LUA language to load a procedure at runtime into `mysqld'.
Procedure Analyse
-----------------
`analyse([max elements,[max memory]])'
This procedure is defined in the `sql/sql_analyse.cc'. This examines
the result from your query and returns an analysis of the results:
`ENUM'.
* `max memory' (default 8192) is the maximum memory `analyse' should
allocate per column while trying to find all distinct values.
SELECT ... FROM ... WHERE ... PROCEDURE ANALYSE([max elements,[max memory]])
Writing a Procedure
-------------------
For the moment, the only documentation for this is the source.
You can find all information about procedures by examining the
following files:
* `sql/sql_analyse.cc'
* `sql/procedure.h'
* `sql/procedure.cc'
* `sql/sql_select.cc'
[Назад] [Содержание] [Вперед]
| Главная |