UAP元数据

---元数据所做的工作
发布元数据会导致以下表中产生数据
执行脚本即执行建表语句
下面只介绍发布元数据所产生的数据
--先根据表名查出发布的元数据的组件id ,之后的查询都是通过compentid来查询数据
componentid 指得是点击空白处的组件ID
假设表名是pt_app_account
select componentid from md_class where defaulttablename='pt_app_account';
 --f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf
---md_table
 select * from  md_table where id in
 (select defaulttablename from md_class where id in
 (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
---枚举
 select * from  MD_ENUMVALUE where id in
 (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
----列数据
 select * from  md_column where tableid in
 (select defaulttablename from md_class where id in
 (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
 --主子表关联关系表
 select * from md_db_relation where startattrid in
 (select id from  md_property where classid in
 (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf'));
 --属性表
 select * from  md_property where classid in
 (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
 select * from  md_association where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
--
 select * from  MD_ACCESSORPARA where id in
  (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
---class表
 select * from  md_bizitfmap where classid in
  (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
 --
select * from  md_ormap where classid in
 (select id from md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf');
---class表
 select * from  md_class where componentid='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
---组件 select * from  md_component where id='f1d9ad1e-70ff-428e-a58b-67a0fb8bdbdf';
---------------------
作者:wqy123123wqy
来源:CSDN
原文:https://blog.csdn.net/wqy123123wqy/article/details/53897991
版权声明:本文为博主原创文章,转载请附上博文链接!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值