0
我想製作一個表格,並且出現此錯誤。我需要解決什麼問題?錯誤1064(42000):您的SQL語法有錯誤;檢查與您的MySQL服務器版本對應的手冊是否符合正確的語法?
mysql> create database mytest;
Query OK, 1 row affected (0.00 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| mytest |
| performance_schema |
| phpmyadmin |
+--------------------+
5 rows in set (0.00 sec)
mysql> use mytest;
Database changed
mysql> create table price(NAME varchar2(60), PRICE number(10));
ERROR 1064 (42000): 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 'varchar2(60), PRICE number(10))' at line 1
另外VARCHAR2是未知的NAME必須反引號 –