小知识系列
开发小知识,冷知识,你不知道的事
MALE_2
做时间的主人
展开
-
使用JAVA NIO 的内存映射进行大文件的读写
public class LargeMappedFiles { static int length = 0x8FFFFFF; //128MB public static void main(String[] args) throws Exception{ MappedByteBuffer out = new RandomAccessFile("test.dat"...翻译 2020-03-10 11:32:28 · 590 阅读 · 0 评论 -
postgresql生成自增序列
postsql 生成自动增长字段CREATE SEQUENCE test_c_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; alter table tablename alter column columnname set default nextval(...原创 2020-03-10 11:31:16 · 630 阅读 · 0 评论