查询:
SELECT date,DATE_FORMAT(STR_TO_DATE(date,"%c/%e/%Y %r"),"%Y/%m/%d %H:%i:%s") FROM receiverlog WHERE date LIKE "%M"
更新:
UPDATE receiverlog SET date=DATE_FORMAT(STR_TO_DATE(date,"%
http server:
/*
A trivial static http webserver using Libevent"s evhttp.
This is not the best code in the world, and it does some fairly stupid stuff
that you would never want to do in a produc