为什么我的 NOW() 函数在 mySQL 语句中,总是将日期设置为 01-01-1970 01:00:00 而不是当前日期和时间?
这是我的声明。
("INSERT INTO transactions
(phoneid,ip, created, cardid, pricebefordiscount,
priceafterdiscount, discount, transactiontime,
raw, restaurant_id, confirmed, processed, before_after_discount,
fix, error, waiter, referer)
Values
(0,0,0,'$memberparamter','$discountPrice','$new_subtotalparamter',null,NOW(),null,'$rest_id',0,0,0,0,0,0,0)");