数据库
iteye_11190
这个作者很懒,什么都没留下…
展开
-
sqlite时间函数及时间处理
sqlite时间函数及时间处理 官方原址:http://www.sqlite.org/lang_datefunc.html SQLite分页显示:Select * From news order by id desc Limit 10 Offset 10 SQLite 包括以下五个时间函数: date(日期时间字符串, 修正符, 修正符, ……) time(日期时间...原创 2012-10-21 13:30:15 · 92 阅读 · 0 评论 -
使用 IFNULL 或 COALESCE
本文转自:http://stackoverflow.com/questions/7602271/how-do-i-get-sum-function-in-mysql-to-return-0-if-no-values-are-found Use IFNULL or COALESCE: SELECT IFNULL(SUM(Column1), 0) AS total FROM... ...原创 2013-03-07 19:06:40 · 128 阅读 · 0 评论