大家好我正在运行此查询
DELETE FROM us_current WHERE created_date > '2018-03-00';
它显示以下错误并停止执行
我的表格结构如下:
CREATE TABLE `us_current` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_date` datetime DEFAULT NULL,
`status` tinyint(2) DEFAULT '1' COMMENT '1 - active, 0 - inactive',
PRIMARY KEY (`id`),
) ENGINE=InnoDB AUTO_INCREMENT=113933 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
答案 0 :(得分:1)
请改为尝试:
DELETE FROM us_current WHERE created_date >= '2018-03-01';