![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
痴人说梦家
一位痴人说梦家!
展开
-
oracle数据库给表加索引
CREATE INDEXIDEN_IDNUMBER–>索引名称ONSIDENTITY–>表名(IDNUMBER–>字段名);原创 2021-03-26 09:44:01 · 16138 阅读 · 1 评论 -
Oracle数据库批量导入 Excel数据
https://www.cnblogs.com/ylldbk/p/5826970.html原创 2021-03-14 20:48:31 · 688 阅读 · 0 评论 -
oracle创建表和约束的SQL语句
---1、创建模拟的数据表 --- --1.1.创建学生表Student create table Student( StuId NUMBER NOT NULL, --学生ID StuName VARCHAR2(10) NOT NULL, --名称 Gender VARCHAR2(10)NOT NULL, -- 性别 Age NUMBER(2) NOT NULL, -- 年龄 Join转载 2021-02-19 16:26:27 · 635 阅读 · 0 评论 -
oracle索引基本操作
查看目标表中已添加的索引/*在数据库中查找表名*/select * from user_tables where table_name like 'tablename%'; /**查看该表的所有索引*/select * from all_indexes where table_name = 'tablename'; /**查看该表的所有索引列*/select* from all_ind_columns where table_name = 'tablename';/**创建索引*/c原创 2021-02-18 15:07:37 · 168 阅读 · 0 评论 -
oracle添加外键约束
1.创建表时并创建外键约束create table score(scoreID int primary key,stuID int ,score int constraint ck_score check(score between 0 and 100),courseName varchar2(20) not null,constraint fk_stuId foreign key(stuID) references student(stuID));2.表创建成功后再添加外键约束--添加外原创 2021-02-18 15:01:11 · 926 阅读 · 0 评论