
Oracle
DcuiF
Rome was not built in a day
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Oracle中创建用户
create user yun3151 identified by yun3151 default tablespace myschool temporary tablespace temp desc dba_users select username from dba_users where account_status='OPEN' grant connect,r原创 2017-02-26 20:12:02 · 853 阅读 · 0 评论 -
Oracle中授予创建同义词
grant create any synonym to scott grant create public synonym to scott grant drop public synonym to scott原创 2017-02-26 20:29:56 · 436 阅读 · 0 评论 -
Oracle中plsql游标
set serveroutput on declare cursor cr_dept (dno number)is select * from dept where deptno=dno; row_dept dept%rowtype; begin open cr_dept(20); fetch cr_dept into row_dept;原创 2017-02-26 20:22:27 · 251 阅读 · 0 评论 -
Oracle中修改密码,账号解锁
步骤 1.现在运行窗口输入 sqlplus/nolog 2.conn /as sysdba 3 alter user system identified by system(改密码) 4.alter user scott account unlock(解账户)原创 2017-02-26 20:25:39 · 357 阅读 · 0 评论 -
Oracle中
create table employy as select * from student select * from employy原创 2017-02-26 20:24:31 · 246 阅读 · 0 评论 -
Oracle中plSql中If语句
set serveroutput on declare v_socre number:=80; begin if v_socre>=80 then dbms_output.put_line('优秀'); elsif v_socre>=60 then dbms_output.put_line('良好'); else dbms_output.put_l原创 2017-02-26 20:21:51 · 5334 阅读 · 1 评论 -
Oracle中plsqlCase语句
set serveroutput on declare v_score number; begin v_score:=99; case when v_score>=80 then dbms_output.put_line('优秀'); when v_score>=60 then dbms_output.put_line('良好'); else db原创 2017-02-26 20:19:34 · 941 阅读 · 0 评论 -
Oracle中创建表空间
create tablespace myschool datafile 'd:\Oracledb\myschool.dbf' size 20m autoextend on maxsize unlimited alter tablespace myschool add datafile 'd:\Oracledb\myschoo2.db' size 40m drop t原创 2017-02-26 20:09:19 · 328 阅读 · 0 评论 -
Oracle中复制表
create table employy as select * from student select * from employy原创 2017-02-26 20:14:00 · 352 阅读 · 0 评论 -
Oralce的存储过程和函数
1.存储过程可以返回多个值 2.函数只能返回一个值 3.复合类型记录相对应java类 4.复合类型表相对于java里面的数组,他的小标为整数,所以小标有可能为负数。 5.游标变量相对应java的集合 ...原创 2019-04-09 15:01:40 · 266 阅读 · 0 评论