随笔分类 -  oracle

oracle
摘要:merge into t2 using t1 on t2.id=t1.id when matched then update t2.name=t1.name 阅读全文
posted @ 2019-07-12 11:41 不像程序员
摘要:查看oracle中表的索引 oracle中表的索引信息存在 user_indexes 和 user_ind_columns 两张表里面, 其中, user_indexes 系统视图存放是索引的名称以及该索引是否是唯一索引等信息, user_ind_columns 统视图存放的是索引名称,对应的表和列 阅读全文
posted @ 2018-03-13 16:48 不像程序员 阅读(453) 评论(0) 推荐(0)
摘要:1.日期转换 : to_date 2.格式转换 : to_char 上面两句sql查询结果一致 3.NVL函数 从两个表达式返回一个非 null 值。 语法: NVL(eExpression1, eExpression2) 4.length 获取字符串的长度 阅读全文
posted @ 2018-03-08 21:58 不像程序员
摘要:加油 阅读全文
posted @ 2018-01-22 11:29 不像程序员 阅读(396) 评论(0) 推荐(0)
摘要:参考: https://www.cnblogs.com/chen1388/archive/2010/09/25/1834827.html sql: 说明: start with : 遍历起始条件 connect by : 连接条件 prior : 表示上一条记录,比如 prior t.org_id 阅读全文
posted @ 2017-12-20 14:30 不像程序员 阅读(158) 评论(0) 推荐(0)
摘要:sys;//系统管理员,拥有最高权限 system;//本地管理员,次高权限 scott;//普通用户,密码默认为tiger,默认未解锁 其他分配权限sql 阅读全文
posted @ 2017-08-10 16:41 不像程序员 阅读(145) 评论(0) 推荐(0)
摘要:1. 查询 判断非空 和 空字符串 2. 创建索引 阅读全文
posted @ 2016-08-24 11:25 不像程序员 阅读(180) 评论(0) 推荐(0)