当前位置:网站首页>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
边栏推荐
- Recommendation | recommendation of 9 psychotherapy books
- Global and Chinese markets for endoscopic drying storage cabinets 2022-2028: Research Report on technology, participants, trends, market size and share
- Figure application details
- 绑定在游戏对象上的脚本的执行顺序
- In depth MySQL transactions, stored procedures and triggers
- Sentinel sliding window traffic statistics
- Redis - redis in action - redis actual combat - actual combat Chapter 1 - SMS login function based on redis - redis + token shared session application - with code
- 电脑钉钉怎么调整声音
- lora网关以太网传输
- 729. My schedule I (set or dynamic open point segment tree)
猜你喜欢

Coreldraw2022 new version new function introduction cdr2022

Database - MySQL storage engine (deadlock)

11. Intranet penetration and automatic refresh

ue5 小知识点 开启lumen的设置

Deep learning framework installation (tensorflow & pytorch & paddlepaddle)

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

How does computer nail adjust sound

Mysql数据库慢sql抓取与分析

Data processing methods - smote series and adasyn

Solutions: word coverage restoration, longest serial number, Xiaoyu buys stationery, Xiaoyu's electricity bill
随机推荐
Brief tutorial for soft exam system architecture designer | general catalog
How to solve the problem of slow downloading from foreign NPM official servers—— Teach you two ways to switch to Taobao NPM image server
How to estimate the population with samples? (mean, variance, standard deviation)
ue5 小知识点 开启lumen的设置
2/12 didn't learn anything
Cross domain and jsonp details
About some basic DP -- those things about coins (the basic introduction of DP)
Fedora/REHL 安装 semanage
Can CDC pull the Oracle table in full
动态规划(树形dp)
[Zhao Yuqiang] deploy kubernetes cluster with binary package
newton interpolation
Meet diverse needs: jetmade creates three one-stop development packages to help efficient development
Easyrecovery reliable and toll free data recovery computer software
【HBZ分享】云数据库如何定位慢查询
捷码赋能案例:专业培训、技术支撑,多措并举推动毕业生搭建智慧校园毕设系统
Tengine kernel parameters
C. The Third Problem(找规律)
10 exemples les plus courants de gestion du trafic istio, que savez - vous?
How does computer nail adjust sound