EAS数据库SQL相关-web端访问数据库
--查询表分录分组倒序
SELECT count(t2.FPARENTID) 条数,t2.FparentId FROM T_AP_OtherBill t1
left join T_AP_OTHERBILLENTRY t2 on t1.fid = t2.fparentid
where t1.FCOMPANYID = 'uB/h0hkcQkyfkdUSFzzdUsznrtQ='
--and rownum <10000
group by t2.FPARENTID
order by 条数
desc
SQL相关
oracle数据库查询多条以逗号隔开
/*dialect*/ select listagg(CFENDORSENO,',') within GROUP (order by CFENDORSENO) from CT_CAS_endorseEntry where FPARENTID = '47pDcZDtRXqQ93Mr0OdFzkAoToE='
批量插入
INSERT INTO T_AR_ARAPRELATIONENTRY
SELECT 'id1','aaa','aaa','aaa','aaa',now() union
SELECT 'id2','aaa','aaa','aaa','aaa',now() union
SELECT 'id3','aaa','aaa','aaa','aaa',now()
时间相关
INSERT INTO T_AR_ARAPRELATIONENTRY (Fid,FDATE ) VALUES ('id2',now())
INSERT INTO T_BAS_MultiApprove (Fid,FDATE ) VALUES ('id2',convert(datetime,'2020-09-18 08:32:16'))
//时间比较
and a.FLASTUPDATETIME >=Convert(datetime,'2017-03-22')
获取指定条数数据
where rownum<10;--获取小于10条数据
ControllerBean
删除
com.kingdee.eas.util.app.DbUtil.execute(ctx, sql);
查询
IRowSet rowset =DbUtil.executeQuery(ctx, sql);
while(rowset.next()) {
String reportId = rowset.getString("reportId");
————————————————
EAS数据库SQL相关-web端访问数据库
--查询表分录分组倒序SELECT count(t2.FPARENTID) 条数,t2.FparentId FROM T_AP_OtherBill t1left join T_AP_OTHERBILLENTRY t2 o...
点击下载文档
上一篇:发票云-离线开票时长超限下一篇:EAS BOS打开导致javaw无法响应
本文2024-09-16 21:56:20发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-44884.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章