17.5. Deallocating Prepared Statements


Prepared statements are dropped automatically when they are redefined or when you close the connection to the server, so there is rarely any reason to drop them explicitly. However, should you wish to do so (for example, to free memory on the server side), use the DEALLOCATE PREPARE statement:

 mysql> DEALLOCATE PREPARE namepop; Query OK, 0 rows affected (0.00 sec) 

MySQL also provides DROP PREPARE as an alias for DEALLOCATE PREPARE.



MySQL 5 Certification Study Guide
MySQL 5.0 Certification Study Guide
ISBN: 0672328127
EAN: 2147483647
Year: 2006
Pages: 312

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net