mysql导入#1064错误

mysql导入#1064错误
新手,导入
mysql_select_db("jy00271070_projet", $con);
$sql = "CREATE TABLE power
(
time int,
motor_A int,
motor_B int,
motor_C int,
)";
mysql_query($sql,$con);
之后会出现错误
#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_select_db("jy00271070_projet", $con)' at line 1

该怎么解决呢?
CREATE TABLE power
(
time int,
motor_A int,
motor_B int,
motor_C int,
)

在mysql里运行这一段就行悉森了
另外建议你还是打睁蠢亩好点基础吧。。。目测你连一些基本的概念都不档罩懂
你这是把PHP当答卜姿成mysql语句了。上面这个内容是PHP,需要在PHP中调用弊清,不能直接在MySQL中直接之行清绝。
← 上一篇: 下一篇: →