数据库
onlyusc2
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Oracle 模糊查询性能优化
问题:使用like模糊查询,性能不是很好,寻求更高效的模糊查询的方法解决:使用oracle自带的instr()函数解决参考:https://blog.youkuaiyun.com/u010028869/article/details/40022547select * from table where instr(字段,字符串)>0 //相当于 字段 like '%字符串%'select * from table where instr(字段,字符串)=1 //相当于 字段 like '字符串%'转载 2020-09-05 22:53:56 · 646 阅读 · 0 评论 -
Oracle判断一个表的一列是否在另一张表的一列存在
转载:https://blog.youkuaiyun.com/tang_xiaotang/article/details/81069472查询出表A中的a列中的每一条数据是否在B表中的B列存在。select *from Awhere exists(select 1 from B where A.a = B.b)转载 2020-08-16 16:55:17 · 2092 阅读 · 1 评论 -
Oracle创建用户、角色、授权、建表空间
转载:https://www.cnblogs.com/fiberhome/p/7273756.htmloracle数据库的权限系统分为系统权限与对象权限。系统权限( database system privilege )可以让用户执行特定的命令集。例如,create table权限允许用户创建表,grant any privilege 权限允许用户授予任何系统权限。对象权限( database object privilege )可以让用户能够对各个对象进行某些操作。例如delete权限允许用户删除表或视转载 2020-08-16 16:52:12 · 318 阅读 · 0 评论
分享