先上代码,有兴趣的可以跑一下 可以实现在有限的线程里执行多个任务,控制内存使用,防止内存飙高 package main import ( "context" "fmt" "strconv" "sync" "time" ) // 定义静态变量 用于外部访问内部方法 var pool *_Pool // ...
分类:
编程语言 时间:
2021-04-02 13:27:16
阅读次数:
0
Oracle中,使用rownum时,一排序rownum也跟着排序了,网上搜索资料说是因为排序的字段不是主键造成的, 然后我实际测试了一下,发现和是不是主键没有关系,自己想了一个笨的的方法,那就是先排序,把排序的结果 在查询一遍,并加上rownum。 例如: select a.*,rownum fro ...
分类:
数据库 时间:
2021-04-02 12:59:53
阅读次数:
0
# 需要修改oracle的配置数据库 import cx_Oracle from Common.dir_config import caps_dir import yaml class DoSql: def do_orcal(self,query_sql,state='all'): # 1打开yam ...
分类:
数据库 时间:
2021-04-01 13:48:10
阅读次数:
0
本文参考了https://blog.csdn.net/xinzhan0/article/details/52461611?locationNum=2&fps=1 如何设置shared pool及sga的大小 前面讲了很多关于shared pool的知识对我们来讲最简单最直接的工作是sharedpoo ...
分类:
数据库 时间:
2021-04-01 13:24:11
阅读次数:
0
sql server环境测试: 几个特性: 1.sql server兼容性可以说是最差的。 举例: select x from y where id=1 字符串查询 select x from y where id='1' 这是会报错的,不允许的 select x from y where id=" ...
分类:
数据库 时间:
2021-04-01 13:09:51
阅读次数:
0
将多条记录的某个字段合并成一条记录 group_concat : 将某字段多条记录合并,默认逗号分隔 select group_concat(c.invoice_no) from ibc_comm_invoice c where c.settle_nos like concat('%',m.sett ...
分类:
数据库 时间:
2021-03-31 12:35:16
阅读次数:
0
// 下面value没有冒号,说明是字符串,只要给前面加上冒号就行了 <Select v-model="roleName"> <Option value=1>哈哈</Option> <Option value=0>呵呵</Option> </Select> // 这里通过 :value 绑定了为数字 ...
分类:
其他好文 时间:
2021-03-31 12:34:02
阅读次数:
0
自定义学生类 public class Student { public int Id { get; set; } public string Name { get; set; } public int ClassId { get; set; } public int Age { get; set; ...
分类:
其他好文 时间:
2021-03-31 12:08:29
阅读次数:
0
vi readreply.sh #!/bin/bash#第一部分 echo -n "What is your name?"readecho "Your name is $REPLY" #已将变量的值从标准输入读到REPLY #第二部分echo -n "What is the name of your ...
分类:
系统相关 时间:
2021-03-30 13:53:42
阅读次数:
0
SQL 构建器 原生 SQL 原生查询 SQL 和 Scan type Result struct { ID int Name string Age int } var result Result db.Raw("SELECT id, name, age FROM users WHERE id = ...
分类:
数据库 时间:
2021-03-30 13:50:41
阅读次数:
0