至于大学,我正在阅读PHP & MySQL for Dynamic Web Sites 4th Edition
。
在我的阅读材料中有一个注释:
In your Web Applications, you should almost always use MySQL functions to format any dates coming from the database (as opposed to formatting the dates within PHP after retrieving them from the database).
我知道MySQL时间函数非常灵活。这本书没有详细说明,我的导师也不知道为什么要推荐它。它只是为了灵活性,还是从中获得了性能提升?