数据库oracle
FashionProgrammer
这个作者很懒,什么都没留下…
展开
-
查询数据库表、表字段、主键、字段注释等,oracle
-- 查询表 select * from all_tables where owner='MO_FORM_V5'; select table_name from user_tables; -- 查询表注释 select * from user_tab_comments where table_name='FORM_DATASOURCE'; -- 查询表字段 select * from cols where table_name=upper('form_datasource'); select * fr原创 2022-03-02 09:38:07 · 370 阅读 · 0 评论 -
触发器例子,oracle
需求描述: 当删除员工时,备份员工表, 触发器: create table EMPLOYEES ( employee_id NUMBER(6) not null, first_name VARCHAR2(20), last_name VARCHAR2(25), email VARCHAR2(25), phone_number VARCHAR2(20), hire_date DATE, job_id V原创 2020-11-18 20:16:21 · 80 阅读 · 0 评论 -
存储过程简单示例,oracle
问题描述: 自定义一个存储过程完成以下操作: 对给定部门(作为输入参数)的员工进行加薪操作, 若其到公司的时间在 (? , 95) 期间, 为其加薪 %5; [95 , 98) %3 [98, ?) ...原创 2020-11-18 20:09:53 · 178 阅读 · 0 评论