9.1.12 Temporary TablesThis is NOT the latest copy of this book; click here for the latest version.
In the same way as the tmpfile() PHP opens a temporary file that is deleted as soon as the script ends, MySQL allows you to create temporary tables. These temporary tables work in the same way as normal tables - you can give them names, add data, read data back, sort information, and such, but are deleted as soon as your database connection is closed.
Temporary tables are covered in full depth later in this chapter.
|
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.
My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!
|