mysql get month from timestamp not working

前端 未结 2 1446
谎友^
谎友^ 2021-01-13 09:05

I have a query that pulls the correct data form a db, but it does not return me the month from the timestamp. In the timestamp column I get a null value, even though the tim

2条回答
  •  逝去的感伤
    2021-01-13 09:41

    "SELECT count(*) as records FROM sms WHERE MONTH(tarih)=MONTH(NOW()) and ceptel='"&ceptel&"'"
    

提交回复
热议问题