04 2022 档案

摘要:1、基本语法 REGEXP_SUBSTR(String, pattern, position,occurrence, modifier) String:需要进行处理的字符串。 pattern:正则表达式。 position:起始位置(从字符串的第几个开始,默认为1,注:数据库中的字符串起始位置为1) 阅读全文
posted @ 2022-04-26 10:16 Faith_zhang 阅读(6605) 评论(0) 推荐(4) 编辑
摘要:1、基本语法 在Oracle中START WITH……CONNECT BY……一般用来查找存在父子关系的数据,也就是树形结构的数据。 SELECT * FROM TABLE WHERE 条件3 START WITH 条件1 CONNECT BY 条件2; start with [condition] 阅读全文
posted @ 2022-04-22 17:12 Faith_zhang 阅读(11606) 评论(0) 推荐(19) 编辑
摘要:create table tab_connect_by (parent number,child number,flag VARCHAR(5)); insert into tab_connect_by (PARENT, CHILD, FLAG)values (4, 2, 'Y'); insert i 阅读全文
posted @ 2022-04-22 15:37 Faith_zhang 阅读(405) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示