查找重复数据
select id, name, memo from A where id in (select id from A group by id having count(1) >= 2)
mysql 当前时间
SELECT NOW(); //2015-10-27 16:43:45
UNIX时间戳转换为日期用函数: FROM_UNIXTIME()
select FROM_UNIXTIME(1156219870); |
日期转换为UNIX时间戳用函数: UNIX_TIMESTAMP()
Select UNIX_TIMESTAMP(’2006-11-04 12:23:00′);