随笔分类 -  软件测试——数据库——oracle数据库

摘要:SQL更新数据 1、插入数据——insert操作 语法格式如下: insert into 表名 (列名1,列名2……,列名n) values (值1,值2……,值n); 在insert操作中,列名列表中的各列需要以逗号分隔;而值列表指定各列的值,列名与值需要一一对应。 如果insert语句所指定的列 阅读全文
posted @ 2020-02-03 22:03 小白龙白龙马
摘要:SQL更新数据 1、插入数据——insert操作 语法格式如下: insert into 表名 (列名1,列名2……,列名n) values (值1,值2……,值n); 在insert操作中,列名列表中的各列需要以逗号分隔;而值列表指定各列的值,列名与值需要一一对应。 如果insert语句所指定的列 阅读全文
posted @ 2020-02-03 22:01 小白龙白龙马
摘要:SQL更新数据 1、插入数据——insert操作 语法格式如下: insert into 表名 (列名1,列名2……,列名n) values (值1,值2……,值n); 在insert操作中,列名列表中的各列需要以逗号分隔;而值列表指定各列的值,列名与值需要一一对应。 如果insert语句所指定的列 阅读全文
posted @ 2020-02-03 21:59 小白龙白龙马
摘要:创建数据表; create table 表名 ( 列明1 数据类型1 [约束性条件], 列明1 数据类型1 [约束性条件], …… ) tablespace 表空间 create table student05 ( student_id number not null, student_name v 阅读全文
posted @ 2020-02-03 21:57 小白龙白龙马
摘要:创建数据表; create table 表名 ( 列明1 数据类型1 [约束性条件], 列明1 数据类型1 [约束性条件], …… ) tablespace 表空间 create table student05 ( student_id number not null, student_name v 阅读全文
posted @ 2020-02-03 21:54 小白龙白龙马
摘要:create table student05 ( student_id number not null, student_name varchar2(20), student_age number, status varchar2(2), version number default 0 ) tab 阅读全文
posted @ 2020-02-03 21:53 小白龙白龙马
摘要:create table student05 ( student_id number not null, student_name varchar2(20), student_age number, status varchar2(2), version number default 0 ) tab 阅读全文
posted @ 2020-02-03 21:50 小白龙白龙马
摘要:create table student05 ( student_id number not null, student_name varchar2(20), student_age number, status varchar2(2), version number default 0 ) tab 阅读全文
posted @ 2020-02-03 21:48 小白龙白龙马
摘要:create table student05 ( student_id number not null, student_name varchar2(20), student_age number, status varchar2(2), version number default 0 ) tab 阅读全文
posted @ 2020-02-03 21:46 小白龙白龙马
摘要:创建数据表; create table 表名 ( 列明1 数据类型1 [约束性条件], 列明1 数据类型1 [约束性条件], …… ) tablespace 表空间 create table student05 ( student_id number not null, student_name v 阅读全文
posted @ 2020-02-03 21:42 小白龙白龙马
摘要:oracle的字符型有3种 1、固定长度字符串:char(n);n代表字符串的长度,当实际字符串的长度不足n时,oracle利用空格在右端补齐,oracle不允许实际字符长度大于n; n的值不能大于2000 2、varchar(n):该数据类型是一个可变长度字符串类型。当实际字符串长度不足时,不会使 阅读全文
posted @ 2020-02-03 21:40 小白龙白龙马
摘要:oracle表空间在逻辑上处于数据库之下。利用表空间可以更灵活的规划数据库结构。 一个数据库可以包含多个表空间,每一个表空间可以包含多个数据表。 表空间会有独立的物理文件,这使得用户可以自行决定表的空间的大小和位置等。 1、创建oracle表空间 在创建表空间时,应指定位置和大小 实例: creat 阅读全文
posted @ 2020-02-03 21:39 小白龙白龙马