您好,欢迎来到尔游网。
搜索
您的当前位置:首页MySQL中的特殊语句查询_MySQL

MySQL中的特殊语句查询_MySQL

来源:尔游网


bitsCN.com 1.计算数据表中一共有多少记录sql语句 mysql> select count(*) from openes; +----------+ | count(*) | +----------+ | 136 | +----------+ 1 row in set (0.00 sec) 2.查询字段类型为datetime的SQL语句: mysql> select * from biders where author_id =2253 and created_at between '2012-3-19 00:00:00 ' and '2012-3-19 23:59:59 '; +----+-----------+---------------------+---------------------+---------------------+ | id | author_id | created_at | updated_at | num_of_target_files | +----+-----------+---------------------+---------------------+---------------------+ | 10 | 2353 | 2012-3-19 15:21:08 | 2012-3-19 15:21:08 | NULL | +----+-----------+---------------------+---------------------+---------------------+ 1 row in set (0.00 sec) 作者 hllnihao bitsCN.com

Copyright © 2019- axer.cn 版权所有 湘ICP备2023022495号-12

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务