i'd like to know if and how i can insert data into a temporary table.
Is it the same way as you insert into a normal table?
This is what i've done.(Using mysql and PHP)
$create="CREATE TEMPORARY TABLE temp_table ( id INT(10),name varchar(50), type varchar(30), category varchar(5) )";
$result_create=mysql_query($create,$conn)
$create_upload="INSERT INTO temp_table (id, name, type, category) VALUES ($id,$name1, $hotel1, $category1)";
$result_upload=mysql_query($create_upload,$conn)
I am pretty sure my syntax is correct.But it shows me an error in the INSERT part.
Is it the same way as you insert into a normal table?
This is what i've done.(Using mysql and PHP)
$create="CREATE TEMPORARY TABLE temp_table ( id INT(10),name varchar(50), type varchar(30), category varchar(5) )";
$result_create=mysql_query($create,$conn)
$create_upload="INSERT INTO temp_table (id, name, type, category) VALUES ($id,$name1, $hotel1, $category1)";
$result_upload=mysql_query($create_upload,$conn)
I am pretty sure my syntax is correct.But it shows me an error in the INSERT part.