当前位置:网站首页>MySQL reported an error datetime (0) null
MySQL reported an error datetime (0) null
2022-07-06 04:30:00 【Dreamy blue】
[SQL]
CREATE TABLE `t_order` (
`order_id` int(11) NOT NULL AUTO_INCREMENT COMMENT ' Waybill id',
`order_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' Waybill No. ',
`send_date` datetime(0) NULL DEFAULT NULL COMMENT ' Delivery time ',
`arrive_date` datetime(0) NULL DEFAULT NULL COMMENT ' Arrival time ',
`send_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' Shipping address ',
`arrive_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' Shipping address ',
`order_state` int(11) NULL DEFAULT 0 COMMENT '0 It is to be verified 1 Is in transit 2 Yes, it has arrived 3 It's order completion ',
`order_create_date` datetime(0) NULL DEFAULT NULL COMMENT ' Order creation time ',
`order_money` double NULL DEFAULT NULL COMMENT ' The freight ',
`order_customer` int(11) NULL DEFAULT NULL COMMENT ' Order customers ',
`order_arrive_username` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' Name of consignee ',
`order_arrive_usertel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' Consignee's telephone number ',
`order_driver` int(11) NULL DEFAULT NULL COMMENT ' Transporters id',
`order_tran` int(11) NULL DEFAULT NULL COMMENT ' Means of transport id',
PRIMARY KEY (`order_id`) USING BTREE,
INDEX `order_customer`(`order_customer`) USING BTREE,
INDEX `order_driver`(`order_driver`) USING BTREE,
INDEX `order_tran`(`order_tran`) USING BTREE,
CONSTRAINT `t_order_ibfk_1` FOREIGN KEY (`order_customer`) REFERENCES `t_customer` (`customer_id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `t_order_ibfk_2` FOREIGN KEY (`order_driver`) REFERENCES `t_driver` (`driver_id`) ON DELETE CASCADE ON UPDATE RESTRICT,
CONSTRAINT `t_order_ibfk_3` FOREIGN KEY (`order_tran`) REFERENCES `t_tran` (`tran_id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
[Err] 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 '(0) NULL DEFAULT NULL COMMENT ' Delivery time ', `arrive_date` datetime(0) NULL ' at line 4
Focus on this sentence arrive_date datetime(0) NULL ’ at line 4
mysql Will prompt grammatical errors , as a result of datetime The length cannot be set to 0
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 '(0) NULL DEFAULT NULL,
terms of settlement
datetime(0) Change it to datetime
边栏推荐
- tengine 内核参数
- 图应用详解
- 11. Intranet penetration and automatic refresh
- P3033 [usaco11nov]cow steelchase g (similar to minimum path coverage)
- cdc 能全量拉去oracle 表嘛
- 10個 Istio 流量管理 最常用的例子,你知道幾個?
- Lagrange polynomial
- 食品行业仓储条码管理系统解决方案
- Stable Huawei micro certification, stable Huawei cloud database service practice
- Coreldraw2022 new version new function introduction cdr2022
猜你喜欢

One question per day (Mathematics)

Meet diverse needs: jetmade creates three one-stop development packages to help efficient development

Database - MySQL storage engine (deadlock)

Mysql数据库慢sql抓取与分析
![[tomato assistant installation]](/img/06/672a616d4fc2a43b83054eb1057628.jpg)
[tomato assistant installation]

Lora gateway Ethernet transmission

Canal synchronizes MySQL data changes to Kafka (CentOS deployment)

颠覆你的认知?get和post请求的本质

When debugging after pycharm remote server is connected, trying to add breakpoint to file that does not exist: /data appears_ sda/d:/segmentation

Lombok原理和同时使⽤@Data和@Builder 的坑
随机推荐
Cross domain and jsonp details
[HBZ sharing] how to locate slow queries in cloud database
P3500 [poi2010]tes intelligence test (two points & offline)
lora网关以太网传输
Global and Chinese market of rubber wheel wedges 2022-2028: Research Report on technology, participants, trends, market size and share
coreldraw2022新版本新功能介绍cdr2022
NPM command -- install dependent packages -- Usage / explanation
CADD course learning (7) -- Simulation of target and small molecule interaction (flexible docking autodock)
2/12 didn't learn anything
【Try to Hack】john哈希破解工具
MLAPI系列 - 04 - 网络变量和网络序列化【网络同步】
1008 circular right shift of array elements (20 points)
How to estimate the population with samples? (mean, variance, standard deviation)
Solution of storage bar code management system in food industry
View 工作流程
脚本生命周期
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
图应用详解
Database - MySQL storage engine (deadlock)
Can Flink SQL read multiple topics at the same time. How to write in with