上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 66 下一页
摘要: 1、Query、Exec(1)Exec(update、insert、delete等无结果集返回的操作)调用完后会自动释放连接;(2)Query(返回sql.Rows)则不会释放连接,调用完后仍然占有连接,它将连接的所属权转移给了sql.Rows,所以需要手动调用close归还连接。 2、sql.Op 阅读全文
posted @ 2018-06-18 11:18 yshy 阅读(181) 评论(0) 推荐(0)
摘要: 1:data/data.go 2:post/post.go 3:main.go 阅读全文
posted @ 2018-06-17 11:40 yshy 阅读(492) 评论(0) 推荐(0)
摘要: 1:首先创建存储过程 2:定义任务 JOB 每天凌晨执行一次。 对应脚本 阅读全文
posted @ 2018-06-12 16:52 yshy 阅读(316) 评论(0) 推荐(0)
摘要: 参考:http://www.01happy.com/golang-zip/ 阅读全文
posted @ 2018-06-09 12:52 yshy 阅读(326) 评论(0) 推荐(0)
摘要: 1:参考:https://github.com/jinzhu/gorm 2:数据库脚本(pg) 3:posts.go 4:main.go 阅读全文
posted @ 2018-06-06 22:10 yshy 阅读(2428) 评论(0) 推荐(0)
摘要: 1:sql脚本 2:post.go 3:main.go 阅读全文
posted @ 2018-06-05 20:56 yshy 阅读(220) 评论(0) 推荐(0)
摘要: package main import( "encoding/csv" "fmt" "os" "strconv" ) type Post struct{ Id int Content string Author string } func main(){ csvFile, err := os.Create("posts.csv") if err!= nil{ pani... 阅读全文
posted @ 2018-06-03 22:25 yshy 阅读(390) 评论(0) 推荐(0)
摘要: 1:创建域(1)节点一执行 (2)进入wlst控制台 (3)进行配置 2:启动服务(1)启动管理 (2)启动节点1被管服务 阅读全文
posted @ 2018-05-26 10:06 yshy 阅读(366) 评论(0) 推荐(0)
摘要: 1:安装mkdir -p /app/mongodb tar zxvf mongodb-linux-x86_64-rhel62-3.4.6.tgz vi .bash_profile PATH=$PATH:$HOME/binPATH=$PATH:/app/mongodb/mongodb-linux-x8 阅读全文
posted @ 2018-05-26 09:01 yshy 阅读(126) 评论(0) 推荐(0)
摘要: find bak/ -mtime +5 -type f | xargs rm -f 阅读全文
posted @ 2018-05-24 13:54 yshy 阅读(164) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 66 下一页