- 博客(5)
- 收藏
- 关注
转载 MYSQL-Date相关函数
SQL Date 函数SQL 日期当我们处理日期时,最难的任务恐怕是确保所插入的日期的格式,与数据库中日期列的格式相匹配。只要数据包含的只是日期部分,运行查询就不会出问题。但是,如果涉及时间,情况就有点复杂了。在讨论日期查询的复杂性之前,我们先来看看最重要的内建日期处理函数。MySQL Date 函数下面的表格列出了 MySQL 中最重要的内建日期函数:函数
2017-08-30 17:10:31 432
转载 nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
nginx: the configuration file /home/work/local-qc/nginx/conf/nginx.conf syntax is oknginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)nginx: configuration file /home/work/local-qc/
2017-08-21 20:53:12 71599 5
原创 local variable 'bug_cnt' referenced before assignment
原代码:bug_cnt=0def foo(): for i in range(10): bug_cnt = bug_cnt+1 if __name__ == '__main__': foo() print bug_cnt运行出现“local variable 'bug_cnt' referenced before assignment”错误。bu
2017-08-16 21:01:39 1229
原创 MySQL时间格式转换
mysql日期和字符相互转换 date_format(date,'%Y-%m-%d') -------------->oracle中的to_char(); str_to_date(date,'%Y-%m-%d') -------------->oracle中的to_date(); www.2cto.com %Y:代表4位的年份 %y:代表2为的年份 %m:代表月, 格式为
2017-08-14 18:32:29 436
原创 MySQL--TIMESTAMPDIFF函数
TIMESTAMPDIFF() function用于返回两个时间点跨越的时间间隔,其中表示时间的单位可以自定义,有:秒、分钟、小时、天、周、月、年等等。MySQL the TIMESTAMPDIFF() returns a value after subtracting a datetime expression from another.It is not neces
2017-08-05 17:54:26 527
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人