上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 使用returning CREATE TABLE users (firstname text, lastname text, id serial primary key);INSERT INTO users (firstname, lastname) VALUES ('Joe', 'Cool') R 阅读全文
posted @ 2018-04-03 16:08 uptothesky 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 可以按如下语句创建表 使用表继承 一张表可以继承多张表 往cities表里插入几条数据 再往capitals插入数据 查询时使用如下语句查询 可以看到把wuhan也查出来了 也可以只查一张表里面的 结果没有wuhan 阅读全文
posted @ 2018-04-02 09:42 uptothesky 阅读(1395) 评论(0) 推荐(0) 编辑
摘要: http1 package main import ( "log" "net/http" "fmt" ) func main() { db:=database{"shoes":50,"socks":5} log.Fatal(http.ListenAndServe("localhost:5000",d 阅读全文
posted @ 2018-03-16 22:03 uptothesky 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 常用参数 非标准选项(以-X为前缀)不保证、也不强制所有JVM实现都必须支持 非稳定选项(以-XX为前缀)通常是为了特定需要而对JVM的运行进行校正 -XX:+PrintGCDetalis 打印GC信息 -XX:+PrintGCTimeStamps 打印每次GC的时间戳 -XX:+PrintHeap 阅读全文
posted @ 2018-02-21 18:16 uptothesky 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 监控CPU Windows 任务管理器 性能管理器(Perfmon) cmd-->perfmon Typeperf Linux top 第一行为任务队列信息 第二、三行为进程和CPU信息 第四、五行为内存信息 PID:进程ID USER:用户名 PR:优先级 NI:负值表示高优先级,正值表示低优先级 阅读全文
posted @ 2018-02-20 10:44 uptothesky 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 线程不安全 SimpleDateFormat不是线程安全的 SimpleDateThread import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class 阅读全文
posted @ 2018-02-17 13:16 uptothesky 阅读(199) 评论(0) 推荐(0) 编辑
摘要: ProcessBuilder import java.io.File; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Paths; im 阅读全文
posted @ 2018-02-17 11:57 uptothesky 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 死锁示例1 public class SyncThread implements Runnable{ private Object obj1; private Object obj2; public SyncThread(Object obj1, Object obj2) { this.obj1 = 阅读全文
posted @ 2018-02-03 21:49 uptothesky 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 安装 https://wiki.postgresql.org/wiki/YUM_Installation 配置 https://wiki.postgresql.org/wiki/First_steps 查看服务状态 这里的数据是放在/var目录下的,建议换个地方存放,因为数据量大了很快就把/var空 阅读全文
posted @ 2018-01-29 13:18 uptothesky 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 服务端 import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketException; public class SocketServer { pub 阅读全文
posted @ 2018-01-28 22:38 uptothesky 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页