我試圖將我的play2.4應用程序連接到MySQL數據庫。 當施加發展,我得到以下錯誤嘗試連接時發生SQL語法錯誤將應用程序播放到mysql數據庫
We got the following error: 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 '(6), pickup_date datetime(6), delivery_date datetime(6' at line 14 [ERROR:1064, SQLSTATE:42000], while trying to run this SQL script:
當我檢查的PHP myadmin我看到所有的表都創建,直到達到此一:根據我猜
create table delivery (
id bigint auto_increment not null,
deleted tinyint(1) default 0,
description varchar(500),
notes varchar(1000),
account_id bigint,
customer_id bigint,
sender_id bigint,
recipient_id bigint,
delivery_status_id bigint,
delivery_type_id bigint,
package_type_id bigint,
item_type_id bigint,
call_date datetime(6),
pickup_date datetime(6),
delivery_date datetime(6),
no_of_pieces integer,
cust_type integer,
payment_type integer,
way_bill integer,
created_time datetime(6),
modified_time datetime(6),
createdby_id bigint,
modifiedby_id bigint,
version datetime(6) not null,
constraint pk_delivery primary key (id))
錯誤發生在這個表正在創建時,但我一直無法找到一個理由,爲什麼他們會是一個錯誤在這裏。
由於該訣竅,它有點兒討厭那部戲產生與(6)連接,雖然演變,止跌你會碰巧知道一個方法嗎? –