1.Ingress测试示例 1.定义一个deployment [root@k8s-master01 service-ingress]# cat nginx-test.yaml apiVersion: v1 kind: Service metadata: name: ingress-test labe ...
分类:
其他好文 时间:
2021-04-16 12:25:19
阅读次数:
0
一、数据字典相关 这个数据字典表可以查询数据库中所有的对象,通过where中的type列和subtype$可以做过滤,比如通过以下sql可以查询所有用户自创建的表: select * from SYS.SYSOBJECTS where subtype$ = 'UTAB';(SELECT * FROM ...
分类:
数据库 时间:
2021-04-16 12:14:18
阅读次数:
0
oracle的写法与sql server不一样,老是只记得sql server的写法,记不住oracle的。 现在专门记录一下。 create table newtablenameas select * from tablename where rownum<0; 上面只复制了结构没有数据,想要有数 ...
分类:
数据库 时间:
2021-04-15 12:46:42
阅读次数:
0
枚举变量的内存布局 查看内存布局的方法 得到变量的内存地址 Xcode → Debug → Debug Workflow → View Memory → 输入内存地址 在下边栏 右击 点击 view memory of "" 普通枚举 enum TestEnum { case test1, test ...
分类:
其他好文 时间:
2021-04-15 12:07:55
阅读次数:
0
#创建job_grades表/*CREATE TABLE job_grades(grade_level VARCHAR(3), lowest_sal int, highest_sal int); INSERT INTO job_gradesVALUES ('A', 1000, 2999); INSE ...
分类:
其他好文 时间:
2021-04-13 12:40:20
阅读次数:
0
package stream import ( "log" "reflect" "sort" ) type ( // a Stream is where one can drain data from Stream chan interface{} // buffer stream BufferSt ...
mongo shell 操作 aggregate 使用mongo db 的 aggregate 进行聚合操作,改操作传入的参数是一个数组 aggregate 操作的参数 match 相当于 mysql 的 where,传入的是筛选条件 示例: {$match : { 'os': 'win' } } ...
分类:
数据库 时间:
2021-04-13 12:04:07
阅读次数:
0
TRUNCATE 用法: TRUNCATE TABLE 表名 DDL语句,删除内容、释放空间,保留表结构。删除表数据,不能删除行数据。 DELETE 用法: DELETE TABLE 表名 WHERE 条件 DML语句,同TRUNCATE类似,DELETE即可删除行也是删除整个表数据,删除操作有记录 ...
分类:
数据库 时间:
2021-04-12 12:56:56
阅读次数:
0
1 def find_worldByName(c_name,continent): 2 print(c_name) 3 print(continent) 4 sql = " SELECT * FROM world WHERE 1=1 " 5 if(c_name!=None): 6 sql=sql+" ...
分类:
数据库 时间:
2021-04-12 12:45:06
阅读次数:
0
1. vi /etc/my.cnf 2. update mysql.user set authentication_string=password('123456') where user='root' and host='localhost'; 3. FLUSH PRIVILEGES; ...
分类:
数据库 时间:
2021-04-12 12:44:01
阅读次数:
0