
oracle
douml88
这个作者很懒,什么都没留下…
展开
-
金蝶系统组织架构封存sql使用
金蝶sql使用原创 2022-12-02 17:55:07 · 636 阅读 · 1 评论 -
ORA-12154: TNS:could not resolve the connect identifier spcified
PL/Sql 连接时,报ORA-12154:TNS:couldnotresolvetheconnectidentifierspcified 此错误如果环境变量,配置没问题,数据库没有问题;则可检查配置文件是否有空格导致,如下:有空格则提示失败;如下:经验证,这样可以正常连接;...原创 2020-06-04 14:44:04 · 364 阅读 · 0 评论 -
Oracle 常用的函数
1 substr函数的简单用法substr(字符串,截取开始位置,截取长度) //返回截取的字substr('Hello World',0,1) //返回结果为 'H' *从字符串第一个字符开始截取长度为1的字符串substr('Hello World',1,1) //返回结果为 'H' *0和1都是表示截取的开始位置为第一个字符substr('Hello World',2,4转载 2013-10-28 17:59:07 · 549 阅读 · 0 评论 -
更新 将B表的数据更新到A表中的某个字段的sql(根据条件)
update A set FResponPositionID=(select FResponPositionID from B where A.funitid=B.fidand B.fisleaf=1 and B.FIsOUSealUp=0 and B.FResponPositionID <>A.FResponPositionID);实际过程中:将T_ORG...原创 2016-12-21 17:16:01 · 13259 阅读 · 1 评论 -
Sql使用查询某一天的发生凭证
select * from t_gl_voucher v left join t_org_company c on c.fid=v.fcompanyidleft join T_BD_Period p on v.FPeriodID=p.fidleft join T_PM_User u on u.fid=v.FCreatorID where c.fnumber in ('T00原创 2016-12-28 16:07:47 · 1317 阅读 · 0 评论 -
教你如何用SQL备份和还原数据库
对于比较简单的表,数据量不是特别多的表,可以使用简单的sql语句来进行备份create table T_FA_Cat_20121207 as select * from T_FA_Cat创建一个新表,把数据保存起来insert into T_FA_Cat select * from T_FA_Cat_20121207把原来备份的数据导入到表中恢复数据转载 2017-05-19 16:48:44 · 504 阅读 · 0 评论 -
金蝶 EAS 查询分析器种备份
select * into dml_T_GL_AccountBalance_180105 from T_GL_AccountBalance ab where ab.FPeriodID in (select fid from T_BD_Period where FPeriodYear=2018);delete from T_GL_AccountBalance ab where a...原创 2018-07-09 11:47:24 · 642 阅读 · 0 评论 -
获取系统多少记录中 时间最新的一条sql语句,并更新对应的表的状态
1.获取job表中多条记录中的最新的一条记录/*Dialect*/select a.*from job awhere not exists(select 1from job bwhere b.deptcode=a.deptcode and b.stime>a.stime)and a.ismaster=1 and a.deptcode in ('DP0205','DP...转载 2019-07-09 17:48:39 · 714 阅读 · 0 评论