上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 69 下一页
摘要: Oracle: select name from order where order_id in('111','222','333','444','555','666')order by instr('111,222,333,444,555,666',order_id); Mysql: 第一种:se 阅读全文
posted @ 2018-10-20 00:19 温柔的风 阅读(431) 评论(0) 推荐(0)
摘要: git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx. port 12345: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc 解决: 把以下代码放到 阅读全文
posted @ 2018-10-18 21:25 温柔的风 阅读(1942) 评论(0) 推荐(0)
摘要: 函数 语句 阅读全文
posted @ 2018-10-15 10:24 温柔的风 阅读(2206) 评论(0) 推荐(0)
摘要: 解决 接下来继续执行安装命令解决 阅读全文
posted @ 2018-10-11 23:21 温柔的风 阅读(3641) 评论(1) 推荐(0)
摘要: 【解决方法】 解决中文乱码问题。配置 ~/.vimrc文件。在文件最后添加如下内容: set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 阅读全文
posted @ 2018-10-11 10:32 温柔的风 阅读(706) 评论(0) 推荐(0)
摘要: #string到int int,err := strconv.Atoi(string) #string到int64 int64, err := strconv.ParseInt(string, 10, 64) //第二个参数为基数(2~36), //第三个参数位大小表示期望转换的结果类型,其值可以为 阅读全文
posted @ 2018-10-10 23:07 温柔的风 阅读(619) 评论(0) 推荐(2)
摘要: 比如讲数据存储在了 Redis 的有序集合 user_score 中,使用 Redis 来统计玩家排行榜的数据。 首先我们需要思考的是,一个典型的游戏排行榜都包括哪些功能呢? 统计全部玩家的排行榜按名次查询排名前 N 名的玩家查询某个玩家的分数查询某个玩家的排名对玩家的分数和排名进行更新查询指定玩家 阅读全文
posted @ 2018-10-10 17:15 温柔的风 阅读(1667) 评论(0) 推荐(0)
摘要: <?php header("content-type:text/html;charset=utf-8"); $redis = new redis(); $result = $redis->connect('127.0.0.1', 6379); $gots = $redis->get("gots"); 阅读全文
posted @ 2018-10-08 20:44 温柔的风 阅读(659) 评论(0) 推荐(0)
摘要: go的默认安装路径是 /usr/local/go 编辑 vim ~/.bash_profile 配置参数 export GOROOT=/usr/local/go export GOPATH=/Users/wangteng/go export GOBIN=$GOROOT/bin export PATH 阅读全文
posted @ 2018-10-08 18:11 温柔的风 阅读(3274) 评论(0) 推荐(0)
摘要: 问题报错: dyld: malformed mach-o image: segment __DWARF has vmsize < filesize 解决办法: cd $GOPATH/src/github.com/beego/bee go install -ldflags "-w" 阅读全文
posted @ 2018-10-07 18:44 温柔的风 阅读(1093) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 69 下一页