作者:guopengfa

SQL

sql case when语句

一、sql中的判断:若有字段a值为-100 ~ 100需要查询结果负数一下为0;正数为1可用语句如下selectcase a >= 0 then 1else 0end as "字段1"二、sql中的替换:若有字段a有值0,1需要查询出结果0为否,1为是语句如下selectc

guopengfa guopengfa 发布于 2020-12-18

es数据库crud 【python】

删除es.indices.delete(index='sales_index', ignore=[400, 404])

guopengfa guopengfa 发布于 2020-12-07

网页前端保留round()方法

(12.365214).toFixed(3)即保留三位小数

guopengfa guopengfa 发布于 2020-10-21