上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: 0.查看磁盘情况--确定data目录放在哪个文件夹下 fdisk -l lsblk 1.关闭防火墙 systemctl disable firewalld 2.解压安装包 .tar.xz 上传安装包 /usr/local/ xz -d mysql-5.7.24-linux-glibc2.12-x86 阅读全文
posted @ 2020-08-14 16:43 star521 阅读(469) 评论(0) 推荐(0) 编辑
摘要: SELECT substring_index(substring_index(a.chain,'_',b.help_topic_id + 1 ), '_' ,- 1 ) AS ID FROM (select '1_11_1223_1242' as chain) a JOIN mysql.help_t 阅读全文
posted @ 2020-08-14 10:24 star521 阅读(2742) 评论(0) 推荐(0) 编辑
摘要: 创建分区表 1.ORIENTATION决定了表的数据的存储方式。 取值范围: COLUMN:表的数据将以列式存储。 ROW(缺省值):表的数据将以行式存储。 ORC:表的数据将以ORC格式存储(仅HDFS表)。 注意: orientation不支持修改 2.COMPRESSION 列存表的有效值为L 阅读全文
posted @ 2020-08-12 10:55 star521 阅读(3413) 评论(0) 推荐(0) 编辑
摘要: 索引大法好 1.需要使用的列: 经常查询的列 排序的列 连接的列 where条件的列 经常出现order by 、group by 、distinct的列 注意:定期删除无用的索引,减少数据操作的负荷 2.索引的创建 唯一索引 create index index_name_id on dbsche 阅读全文
posted @ 2020-08-12 10:01 star521 阅读(488) 评论(3) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-12 09:29 star521 阅读(3) 评论(0) 推荐(0) 编辑
摘要: sequence 阅读全文
posted @ 2020-08-11 10:29 star521 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1.PGSQL-查看sql正在运行的进程 SELECT datname,pid,state,query FROM pg_stat_activity where state='active' SELECT procpid, START, now() - START AS lap, current_qu 阅读全文
posted @ 2020-08-11 09:20 star521 阅读(9345) 评论(1) 推荐(1) 编辑
摘要: regexp_split_to_table(str,str1) regexp_split_to_array(str,str1) split_part(str,str1,取第几部分) select regexp_split_to_table('F:\QH本部文件\一套表部署相关\test.sh','\ 阅读全文
posted @ 2020-08-10 18:01 star521 阅读(2079) 评论(0) 推荐(0) 编辑
摘要: 1.substr(字符串,开始索引,截取长度)select SUBSTR('太阳当空照,花儿对我笑',1,4)太阳当空 substr(字符串,留下的字符串索引的开始)select SUBSTR('太阳当空照,花儿对我笑',5)照,花儿对我笑 2.substring(字符串 from 开始索引 for 阅读全文
posted @ 2020-08-10 17:09 star521 阅读(6641) 评论(0) 推荐(0) 编辑
摘要: 1.炸裂函数regexp_split_to_table 以逗号切分,转为数据集 select regexp_split_to_table('飞机,火车,地铁,汽车', ',' ) select regexp_split_to_array('飞机,火车,地铁,汽车', ',' ) 转为数组 selec 阅读全文
posted @ 2020-08-10 15:54 star521 阅读(10523) 评论(0) 推荐(2) 编辑
摘要: 安装https://www.yoytang.com/postgres-windows-install-and-config.html 下载最新的zip包 http://get.enterprisedb.com/postgresql/postgresql-9.5.2-1-windows-x64-bin 阅读全文
posted @ 2020-08-10 10:29 star521 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 0.日期 格式化 to_date to_date(close_contact_time ,'yyyy-MM-dd hh24:mi:ss') select trunc('2020-08-10 10:43:32' ,'yyyy-MM-dd hh24:mi:ss' ) 1.当前时间 select CURR 阅读全文
posted @ 2020-08-04 19:11 star521 阅读(4675) 评论(0) 推荐(0) 编辑
摘要: 数据倾斜、数据各节点分布情况、创建分布式表 查看表的分布节点 -- 查看表是否数据倾斜 select table_skewness('b_st_yz_aj_cgajfj'); -- 在哪个节点分布 -- 查看表是否数据倾斜 select table_skewness('b_st_yz_aj_cgaj 阅读全文
posted @ 2020-08-03 19:06 star521 阅读(6812) 评论(0) 推荐(0) 编辑
摘要: > ORA-00932: inconsistent datatypes: expected - got CLOB select * from QH_VIEW_LGAREAPRODUCT where dbms_lob.instr(LGYEAR,'2015') >0 dbms_lob.instr()函数 阅读全文
posted @ 2020-07-30 16:23 star521 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 1.oracle数据库linux服务器下登陆使用 su - oracle sqlplus / as sysdbaconnect yonghuming/mima as sysdba 1. oracle 查询所有的schemeselect username from dba_users; 2. orac 阅读全文
posted @ 2020-07-30 16:02 star521 阅读(1104) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页