当前位置:网站首页>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
边栏推荐
- P2022 有趣的数(二分&数位dp)
- Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
- 10个 Istio 流量管理 最常用的例子,你知道几个?
- Is the mode of education together - on campus + off campus reliable
- Recommendation | recommendation of 9 psychotherapy books
- Recommendation system (IX) PNN model (product based neural networks)
- Mysql数据库慢sql抓取与分析
- 【Try to Hack】john哈希破解工具
- Mysql database storage engine
- One question per day (Mathematics)
猜你喜欢
lora网关以太网传输
Cross domain and jsonp details
ETCD数据库源码分析——etcdserver bootstrap初始化存储
Slow SQL fetching and analysis of MySQL database
综合能力测评系统
MLAPI系列 - 04 - 网络变量和网络序列化【网络同步】
[Zhao Yuqiang] deploy kubernetes cluster with binary package
IDEA编译JSP页面生成的class文件路径
绑定在游戏对象上的脚本的执行顺序
Execution order of scripts bound to game objects
随机推荐
HotSpot VM
综合能力测评系统
During pycharm debugging, the view is read only and pause the process to use the command line appear on the console input
Redis - redis in action - redis actual combat - actual combat Chapter 1 - SMS login function based on redis - redis + token shared session application - with code
Recommendation system (IX) PNN model (product based neural networks)
Basic use of MySQL (it is recommended to read and recite the content)
P2102 地砖铺设(dfs&贪心)
. Net interprocess communication
Case of Jiecode empowerment: professional training, technical support, and multiple measures to promote graduates to build smart campus completion system
I'd like to ask about the current MySQL CDC design. In the full volume phase, if a chunk's binlog backfill phase,
Lagrange polynomial
Solutions: word coverage restoration, longest serial number, Xiaoyu buys stationery, Xiaoyu's electricity bill
The most detailed and comprehensive update content and all functions of guitar pro 8.0
ETCD数据库源码分析——etcdserver bootstrap初始化存储
CADD课程学习(7)-- 模拟靶点和小分子相互作用 (柔性对接 AutoDock)
VNCTF2022 WriteUp
How many of the 10 most common examples of istio traffic management do you know?
View 工作流程
Solve the compilation problem of "c2001: line breaks in constants"
食品行业仓储条码管理系统解决方案