在我的数据库的表中的数据:MySQL的删除其日期时间最近的系统时间
id_client
(主键和AUTO_INCREMENT)
name_client
(VARCHAR)
time_insert
(日期时间)
例如DATAS在表中:
---------------------------------------
| id_client name_client time_insert
| 1 tintin 2012-08-17 11:04:04
| 2 tata 2012-08-17 11:06:15
| 3 toto 2012-08-17 11:10:05
如果我想删除time_insert
离系统时间最近(最接近)的行,该如何编写命令?
您应该指定“最接近”的意思。 “最接近系统时间”的 – Asciiom 2012-08-17 09:12:36
? – stevey 2012-08-17 09:22:19
对不起,我以为你想删除多行 – Asciiom 2012-08-17 09:25:55