当前位置:网站首页>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
边栏推荐
- Basic use of MySQL (it is recommended to read and recite the content)
- 颠覆你的认知?get和post请求的本质
- VPP performance test
- I'd like to ask about the current MySQL CDC design. In the full volume phase, if a chunk's binlog backfill phase,
- MIT CMS. 300 session 8 – immersion / immersion
- The most detailed and comprehensive update content and all functions of guitar pro 8.0
- 10個 Istio 流量管理 最常用的例子,你知道幾個?
- 脚本生命周期
- npm命令--安装依赖包--用法/详解
- Guitar Pro 8.0最详细全面的更新内容及全部功能介绍
猜你喜欢
During pycharm debugging, the view is read only and pause the process to use the command line appear on the console input
In depth MySQL transactions, stored procedures and triggers
Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
MySQL learning record 13 database connection pool, pooling technology, DBCP, c3p0
When debugging after pycharm remote server is connected, trying to add breakpoint to file that does not exist: /data appears_ sda/d:/segmentation
CertBot 更新证书失败解决
Canal synchronizes MySQL data changes to Kafka (CentOS deployment)
Fedora/REHL 安装 semanage
The value of two date types is subtracted and converted to seconds
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
随机推荐
牛顿插值法
Complete list of common functions of turtle module
How to estimate the population with samples? (mean, variance, standard deviation)
关于进程、线程、协程、同步、异步、阻塞、非阻塞、并发、并行、串行的理解
10個 Istio 流量管理 最常用的例子,你知道幾個?
Recommendation system (IX) PNN model (product based neural networks)
CADD课程学习(8)-- 化合物库虚拟筛选(Virtual Screening)
P2102 地砖铺设(dfs&贪心)
I'd like to ask about the current MySQL CDC design. In the full volume phase, if a chunk's binlog backfill phase,
SharedPreferences 源码分析
Etcd database source code analysis -- etcdserver bootstrap initialization storage
综合能力测评系统
BOM - location, history, pop-up box, timing
Query the number and size of records in each table in MySQL database
【HBZ分享】ArrayList的增删慢查询快的原因
Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
Path of class file generated by idea compiling JSP page
Word cover underline
绑定在游戏对象上的脚本的执行顺序
tengine 内核参数