我想使用以下脚本创建一个表:
mysql_query("create table `".$mysql_table_prefix."query_log` (
query varchar(255),
time timestamp(14),
elapsed float(2),
results int,
key query_key(query)
)");
Run Code Online (Sandbox Code Playgroud)
它给了我这个错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql_query("create table `".$mysql_table_prefix."query_log` ( query varchar(25' at line 1
Run Code Online (Sandbox Code Playgroud)
编辑:我在phpMyAdmin中使用了sql选项卡
我能做什么?