mysql 关于8位数的时间显示问题 我的test表中字段 data1 字段的属性已经设置为 timestamp(8)了 用now函数写入。为什么查询出来的结果还是 14位的2009-06-02 10:00:31 俺只想要2009-06-02这种格式啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 mysql> select date(current_timestamp());+---------------------------+| date(current_timestamp()) |+---------------------------+| 2009-06-02 |+---------------------------+1 row in set (0.00 sec)mysql> select date_format(current_timestamp(),'%Y-%m-%d');+---------------------------------------------+| date_format(current_timestamp(),'%Y-%m-%d') |+---------------------------------------------+| 2009-06-02 |+---------------------------------------------+1 row in set (0.00 sec) 关于行列转换 无法连接mysql mysql group by 提取各组中2条数据 哪位大虾知道怎么把mysql4.x的内存占用降到3.x的水平 菜鸟送分!怎么才能读取.frm的文件 连接问题,谢谢 mysql插入100000条记录要多长时间? 关于sql语句的优化 mysql数据库存储过程并发问题 某字段设为自动增量时的插入问题 在linux下mysql 数据库问题 优化下查询语句
+---------------------------+
| date(current_timestamp()) |
+---------------------------+
| 2009-06-02 |
+---------------------------+
1 row in set (0.00 sec)mysql> select date_format(current_timestamp(),'%Y-%m-%d');
+---------------------------------------------+
| date_format(current_timestamp(),'%Y-%m-%d') |
+---------------------------------------------+
| 2009-06-02 |
+---------------------------------------------+
1 row in set (0.00 sec)