摘要: --使用CAST将varchar转换成int类型排序 select distinct(zone_id) from guild_rank_info order by CAST(zone_id as SIGNED); --使用CONVERT将varchar转换成int类型排序 select distinct(zone_id) from guild_rank_info order by co... 阅读全文
posted @ 2017-06-16 16:21 edgedance 阅读(12508) 评论(0) 推荐(0) 编辑
摘要: 1打开文件,添加如下一段话 vim ~/.bashrc alias grep='grep --color' 2退出保存 source ~/.bashrc 只有执行grep命令搜索的时候,关键字就会有颜色了也可以临时查询的时候,添加颜色 ps -ef | grep --color "timer" null 阅读全文
posted @ 2017-06-16 14:23 edgedance 阅读(13487) 评论(0) 推荐(0) 编辑
摘要: crond 是linux用来定期执行程序的命令。当安装完成操作系统之后,默认便会启动此 任务调度命令。crond命令每分锺会定期检查是否有要执行的工作,如果有要执行的工作便会自动执行该工作。1语法 * * * * * command 分 时 日 月 周 命令 第1列表示分钟1~59 每分钟用*或者 */1表示 第2列表示小时1~23(0表示0点)... 阅读全文
posted @ 2017-06-16 14:23 edgedance 阅读(4138) 评论(0) 推荐(1) 编辑
摘要: Spring controller 如下@Controller public class SimpleController { @ResponseBody @RequestMapping(value = "/hotel") public String hotel() { return "{\"status\":0,\"errmsg\":null,\"dat... 阅读全文
posted @ 2017-06-16 11:03 edgedance 阅读(7673) 评论(1) 推荐(0) 编辑
摘要: 1. 5.6版本及之后的版本的base64主要就是两个mysql内部函数to_base64和from_base64,使用也很简单,如下:5.6之前不支持mysql> select version(); +-----------+ | version() | +-----------+ | 5.7.11 | +-----------+ 1 row in set (0.00 sec) mysq... 阅读全文
posted @ 2017-06-16 11:00 edgedance 阅读(6913) 评论(0) 推荐(0) 编辑