mysql查询时间戳转换
mysql查询时间戳转换
SELECT FROM_UNIXTIME(create_time) FROM tablename;
更新时间为七天以后
UPDATE t_rebate_trade_item SET delivered_time=DATE_SUB(delivered_time,INTERVAL 7 DAY) WHERE order_id=xxx;
mysql查询时间戳转换
SELECT FROM_UNIXTIME(create_time) FROM tablename;
更新时间为七天以后
UPDATE t_rebate_trade_item SET delivered_time=DATE_SUB(delivered_time,INTERVAL 7 DAY) WHERE order_id=xxx;