你好我試圖使用PHP在MySQL中創建一些臨時表在MySQL中創建一些臨時表我試着使用PHP
我的代碼:
<?php
mysql_connect("localhost","root","sahan");//database connection
mysql_select_db("callcenter");
$maketemp="create table #temp1 (id varchar(50),date varchar(50),csc varchar(50),effectedareas varchar(50),agent varchar(50))";
$data1 = mysql_query($maketemp)
or die(mysql_error());
?>
,但它給出了一個錯誤:「你有在您的SQL語法錯誤;檢查對應於你的MySQL服務器版本,在1" 號線附近使用「」正確的語法
我的MySQL版本是以下手冊
MySQL Ver 14.12 Distrib 5.0.77,用於redhat-linux-gnu(i686)使用readline 5.1
我沒有太多流利的PHP編碼,請問有人能幫我嗎?
[MySQL的臨時表(http://www.tutorialspoint.com /mysql/mysql-temporary-tables.htm) – bummi 2014-09-23 05:33:31