Temporary table

Temporary table

Temporary table :
TEMPORARY table is visible only to the current connection, and is dropped automatically when the connection is closed. To create temporary tables, We must have the CREATE TEMPORARY TABLES privilege.
CREATE TEMPORARY TABLE does not automatically commit the current active transaction .

Syntax:
CREATE TEMPORARY TABLE table_name(field1 type,field2 type,field3 type, . . . .)

Example:
CREATE TEMPORARY TABLE temp_table (name varchar(20),……);

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.