Документ взят из кэша поисковой машины. Адрес оригинального документа : http://itpm.msu.su/mysql/Manual_chapter/manual_Adding_procedures.html
Дата изменения: Tue Feb 15 06:19:57 2000
Дата индексирования: Mon Oct 1 21:58:08 2012
Кодировка:
MySQL Reference Manual for version 3.23.10-alpha. - 15 Adding new procedures to MySQL Go to the first, previous, next, last section, table of contents.


15 Adding new procedures to MySQL

In MySQL, you can define a procedure in C++ that can access and modify the data in a query before it is sent to the client. The modification can be done on row by row or GROUP BY level.

We have created an example procedure in MySQL 3.23 to show you what can be done.

15.1 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.

SELECT ... FROM ... WHERE ... PROCEDURE ANALYSE([max elements,[max memory]])

15.2 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:


Go to the first, previous, next, last section, table of contents.