02 2017 档案
摘要:select count(1),DATE_FORMAT(FROM_UNIXTIME(createtime/1000), '%Y-%m-%d') as time from bskuser where createtime between 1487347200000 and 1488211199000 group by time
阅读全文
摘要:更多:http://www.open-open.com/code/view/1423207309170
阅读全文
摘要:SELECT (CASE payType WHEN 1 THEN '微信' WHEN 2 THEN '支付宝' ELSE '余额' END) as type, count(payType) FROM order_info WHERE payJe > 0 AND payTime IS NOT NULL
阅读全文
摘要:var a=[1,2,3,4,1,2,3,4]; console.log( Array.from(new Set(a)) ); var b; b=a.filter(function(el,index,self ){ return self.indexOf(el)==index; //indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。如何检索的字符串值没有...
阅读全文
摘要:interval 间隔调度 它的参数如下: weeks(int) – number of weeks to wait days(int) – number of days to wait hours(int) – number of hours to wait minutes(int) – numb
阅读全文
摘要:#!/usr/local/bin/python # coding=utf-8 from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': ...
阅读全文
摘要:SELECT CASEWHEN //当count(userId) = 0的时候 让其为null 不然报警告 // count(DISTINCT userId) 不用处理 count(userId) = 0 THEN NULL ELSE ROUND( count(userId) / count(DIS
阅读全文
摘要:在chrome上 在Safari上 类似‘2017-2-23’ 这种的时间格式,是无效的时间格式! 在chrome上,对于无效的时间格式,chrome会吧当做当天00:00解析, 在Safari上,对于无效的时间格式,Safari 会直接报错! Python 这种后台语言没有这种问题 https:/
阅读全文
摘要:from flask import Flask from flask_cors import CORS, cross_origin app = Flask(__name__) CORS(app) @app.route("/") def helloWorld(): return "Hello, cross-origin-world!" from functools import wra...
阅读全文
摘要:ltime = time.localtime(todayStamp) timeStr = time.strftime("%Y-%m-%d", ltime) # print datetime.datetime.fromtimestamp(todayStamp) http://www.wklken.me/posts/2015/03/03/python-base-datetime.ht...
阅读全文
摘要:原文:http://gsw945.com/temp/flask-jsonp.py
阅读全文
摘要:1:Select A.name,B.name from A inner join B on A.id=B.id和 2:Select A.name,B.name from A,B where A.id=B.id结果是一样的(内连接的inner关键字可省略); 第一个是是在A 上面去关联B, 第二个是
阅读全文

浙公网安备 33010602011771号