![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
x11819130
这个作者很懒,什么都没留下…
展开
-
Linux下安装部署Mysql
系统:CentOS Linux release 7.7.1908 (Core)软件:mysql-5.7.33安装步骤:mkdir -p /usr/local/soft/packagecd /usr/local/soft/package#下载安装包,解压wget https://mirrors.aliyun.com/mysql/MySQL-5.7/mysql-5.7.33-linux-glibc2.12-x86_64.tartar -xvf mysql-5.7.33-linux-glibc2.1原创 2021-03-04 21:00:24 · 902 阅读 · 1 评论 -
Mysql序列使用
-- 创建序列表drop table if exists sequence;create table sequence ( name varchar(50) not null, current_value bigint not null, increment int not null default 1, primary key (name)) engine = innodb;-- 创建函数...原创 2019-12-20 10:20:12 · 1033 阅读 · 0 评论 -
Oracle 常用Sql
创建表空间与用户/* 说明:若已经存在相应的用户和表空间,则需要先删除相应的用户和表空间 然后再全部重新建立*/--删除用户drop user test cascade;--删除表空间drop tablespace test_data_temp including contents and datafiles;drop tablespace test...原创 2018-03-01 18:04:06 · 1046 阅读 · 0 评论 -
Oracle跨用户,跨库关联查询处理
Oracle跨用户,跨库关联查询处理 一般来说,Oracle的跨用户关联查询可以使用给当前用户授权目标用户访问权限,然后使用目标用户.表名的形式访问.跨库关联查询可以建dblink然后使用远程表@dblink的形式访问. 但直接这么做会有一些问题,比如实际项目中需要改用户名,那所有使用用户名.表名的地方都要改.还有虽然预期这两个用户是在同一个实例下,但实际项目中也有可能是在不同的实例下...原创 2018-03-02 11:20:41 · 10725 阅读 · 0 评论 -
Oracle函数摘录
rpadrpad函数从右边对字符串使用指定的字符进行填充 语法格式如下rpad(string,padded_length,[pad_string]) string 表示:被填充的字符串 padded_length 表示:字节的长度,是返回的字节长度的字符串,如果这个数量比原字符串的字节长度要短,rpad函数将会把字符串截取成从左到右的n个字符;如果正好是中文要被截断,那么这个中文返回...原创 2018-03-12 15:00:33 · 942 阅读 · 0 评论 -
oracle - 导入导出dmp emp/imp;empdp/impdp
1.使用emp导出exp {user}/{pwd}@{address}/{sid} file={path} owner={user}exp {user}/{pwd}@{address}/{sid} file={path} owner={user} tables={table1}exp {user}/{pwd}@{address}/{sid} file={path} owner={user}...原创 2018-03-12 15:07:11 · 2246 阅读 · 0 评论 -
oracle connect by用法
oracle connect by用法create table t_location( id number primary key, name varchar(16) not null, pid number not null)insert into t_location values(1,'华东区',0);insert into t_loc...原创 2018-03-12 15:09:36 · 1010 阅读 · 0 评论