摘要: 1、mysql.class.php <?php // namespace Package; /** * MySQL 类 * @author cxm <tsai.er6@gmail.com> * */ class MySQL { private static $link = null; //数据库连接 阅读全文
posted @ 2016-12-15 16:28 魂牵绕明 阅读(2582) 评论(6) 推荐(1) 编辑
摘要: 1、已知出生日期,求年龄 2.出生日期求年龄函数 3.时间戳: select unix_timestamp(); //当前时间戳 select from_unixtime(unix_timestamp()); --将时间戳转成日期格式 select curdate(); -- 返回今天的时间日期 s 阅读全文
posted @ 2016-12-15 09:33 魂牵绕明 阅读(259) 评论(0) 推荐(0) 编辑