USING PHP and MySQL I want to create a temporary table based on another table. Acoordingto the MySQL help the syntax is:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)]
[table_options] [select_statement]
What does the select statement have to look like??
CREATE TABLE temp_accomm SELECT record_id, name, description, photo_id, caption, island, accomm_type, address, phone, email, website, special_, price_text, price_max, price_min, open from ac_records where record_id='1';