mysql 时间戳 转成 正常 时间 日期
SELECT bptype,FROM_UNIXTIME(bptime,'%Y-%m-%d')bptime,bpprice,remarks,uid,isverified,FROM_UNIXTIME(cltime,'%Y-%m-%d')cltime,bankid,bpbalance,FROM_UNIXTIME(btime,'%Y-%m-%d')btime,reg_par,balance_sn,pay_type
FROM wp_balance WHERE btime >= (SELECT UNIX_TIMESTAMP('2018-07-01')) AND bptype = 0
1 2 | SELECT bptype,FROM_UNIXTIME(bptime, '%Y-%m-%d' )bptime,bpprice,remarks,uid,isverified,FROM_UNIXTIME(cltime, '%Y-%m-%d' )cltime,bankid,bpbalance,FROM_UNIXTIME(btime, '%Y-%m-%d' )btime,reg_par,balance_sn,pay_type FROM wp_balance WHERE btime >= (SELECT UNIX_TIMESTAMP( '2018-07-01' )) AND bptype = 0 |
(SELECT UNIX_TIMESTAMP('2018-07-01')) 把日期变成时间戳
FROM_UNIXTIME(bptime,'%Y-%m-%d')bptime 把时间戳变成日期
站长微信:xiaomao0055
站长QQ:14496453