上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: --1.SQL用 postgres账户查询 PostgreSQL 中指定DB以及schema下唯一索引的信息,按照表名:索引名:索引键值 并按表名排序输出 SELECT t.tablename AS table_name, i.indexname AS index_name, string_agg( 阅读全文
posted @ 2024-05-01 20:39 DBAGPT 阅读(52) 评论(0) 推荐(0)
摘要: https://github.com/jkstill/oracle-script-lib 阅读全文
posted @ 2024-04-27 23:09 DBAGPT 阅读(23) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2024-04-27 14:22 DBAGPT 阅读(0) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2024-04-27 14:21 DBAGPT 阅读(0) 评论(0) 推荐(0)
摘要: #!/bin/bash # 过滤掉所有OK列以及以 开头的列到result1.txt文件中 grep -v -E "TABLE1: OK|--" data_validation.txt > result1.txt # 提取ORACLEDB以及POSTGRES开头的列,按照原格式存储到temp1.tx 阅读全文
posted @ 2024-04-24 22:57 DBAGPT 阅读(36) 评论(0) 推荐(0)
摘要: #!/bin/bash # 从data_validation.txt文件中提取需要处理的行,并将结果保存到temp.txt文件中 grep -E "ORACLEDB|POSTGRES" data_validation.txt > temp.txt # 逐行读取temp.txt文件 while IFS 阅读全文
posted @ 2024-04-24 22:32 DBAGPT 阅读(76) 评论(0) 推荐(0)
摘要: Oracle SELECT LOWER(c.table_name) || ':' || LOWER(i.index_name) || ':' || LOWER(wm_concat(c.column_name)) AS output FROM all_indexes i JOIN all_ind_co 阅读全文
posted @ 2024-04-24 22:02 DBAGPT 阅读(20) 评论(0) 推荐(0)
摘要: Both Oracle and PostgreSQL support the TIMESTAMP WITH TIME ZONE data type, but there are some differences in how they handle and store time zone infor 阅读全文
posted @ 2024-04-23 09:55 DBAGPT 阅读(86) 评论(0) 推荐(0)
摘要: 设置root密码,并创建db以及密码和用户 Vagrant.configure("2") do |config| config.vm.box = "oraclelinux/8" config.vm.network "private_network", ip: "192.168.56.101" con 阅读全文
posted @ 2024-03-30 13:28 DBAGPT 阅读(64) 评论(0) 推荐(0)
摘要: CREATE OR REPLACE FUNCTION disable_triggers(a boolean, nsp character varying) RETURNS void AS $BODY$ declare act character varying; r record; begin if 阅读全文
posted @ 2024-03-27 22:46 DBAGPT 阅读(35) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 12 下一页