
Oracle
Raitim
这个作者很懒,什么都没留下…
展开
-
创建触发器时出现 PLS-00049: 错误的赋值变量 ':NEW.modify_man'
create or replace trigger t_hang_infobefore insert or update or delete on hang_infofor each rowdeclare pbCount number;begin select count(LANDID) into pbCount from TRADECENTER_LANDHANG where LANDID = :原创 2014-01-03 21:56:01 · 10643 阅读 · 0 评论 -
更新zxbz信息(多对多)
--更新zxbz信息--update>a.k=(select b.k from lsb b where b.id6=a.spbh),a.g=(select>a.tj=(select b.tj from lsb b where b.id6=a.spbh)where>) and a.bzbs='3'原创 2013-12-25 22:16:32 · 838 阅读 · 0 评论 -
expdata.sh报错LRM-00112: multiple values not allowed for parameter 'log'
expdata.sh内容如下:rq=`date '+%Y%m%d%H%M'`exp user/passwd owner=user file=/home/oradb_${rq}.dmp buffer=204800 log=/home/oradb_${rq}.log>/home/oracle/out.log[oracle@rac1 bk]$ ./expdata.sh L原创 2013-12-24 22:26:48 · 7677 阅读 · 0 评论 -
Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别
Oracle sys和system用户、sysdba和sysoper系统权限、sysdba和dba角色的区别 sys和system用户区别1)最重要的区别,存储的数据的重要性不同sys所有oracle的数据字典的基表和视图都存放在sys用户中,这些基表和视图对于oracle的运行是至关重要的,由数据库自己维护,任何用户都不能手动更改。sys用户拥有dba,sysdba,sy原创 2013-12-24 22:59:46 · 1917 阅读 · 0 评论 -
字段去空格
去掉某字段前后带的空格:--update 表名 g set g.字段=ltrim(rtrim(g.字段)) where g.字段!=ltrim(rtrim(g.字段))原创 2013-12-25 21:49:55 · 1146 阅读 · 0 评论 -
2个表关联update
2个表关联update:update Table1 a -- 使用别名set>where exists (select 1from Tbale2 bwhere>)原创 2013-12-25 22:05:26 · 825 阅读 · 0 评论 -
创建临时表
创建临时表:-- Create tablecreate table TEST( id1 VARCHAR2(200), c VARCHAR2(200), k VARCHAR2(200), g VARCHAR2(200), id2 VARCHAR2(200), id3 VARCHAR2(200), bzbs VARCHAR2原创 2013-12-25 22:18:54 · 909 阅读 · 0 评论 -
oracle中从一个表中插入数据到另一个相同表结构的表中
oracle中从一个表中插入数据到另一个相同表结构的表中insert into ca select * from ca21 c where c.ca_id!='20129'原创 2013-12-25 22:23:21 · 6332 阅读 · 0 评论