当前位置:网站首页>Kingbase export table structure
Kingbase export table structure
2022-06-29 03:46:00 【straight left】
The database management tool function of NPC gold warehouse is not strong enough . Only through SQL To export the table structure .
View the database objects of the NPC gold warehouse , In addition to using its scripting tools ksql, It is estimated that it can only provide its own graphical tools “ Database object management tool ” 了 . No third-party tools . No means that you cannot use the database of the gold warehouse of the National People's Congress .
The problem is , People's gold warehouse's own tools are not easy to use , Lack of functionality that should have been provided , For example, export table structure . You see oracle Of plsql Query tools , To export the table structure, you can export , To generate ER You can generate ER chart . and kingbase Our database object management tools do not have these functions .
Only use sql Statement to query table information , Then export manually .
SELECT a.attname AS field,
b.description AS COMMENT,
t.typname AS type,
CASE WHEN a.atttypmod<=0 THEN NULL ELSE (a.atttypmod-4) END AS lengthvar,
a.attnotnull AS notnull
FROM sys_class c
INNER JOIN sys_namespace n on c.relnamespace = n.oid,
sys_attribute a LEFT JOIN sys_description b ON a.attrelid=b.objoid AND a.attnum = b.objsubid,
sys_type t
WHERE a.attnum > 0
and a.attrelid = c.oid
and a.atttypid = t.oid
AND nspname = 'work' -- schema
AND c.relname = 'outlet_nonfarmed' -- table_name
ORDER BY a.attnum;

Reference article
Get table structure , Including column name and other information
边栏推荐
- Adelaidet (detectron2) & abcnet environment configuration
- Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]
- 人大金仓(KingBase)导出表结构
- Web APIs high order functions - dark horse programmers
- [tcapulusdb knowledge base] Introduction to tcapulusdb table data caching
- Requirements analysis specification and requirements specification
- Seura 2测试代码总结
- 《运营之光3.0》全新上市——跨越时代,自我颠覆的诚意之作
- Laravel, execute PHP artist migrate and report an error alter table `users`add unique `users_ email_ unique`(`email`))
- Wechat applet development Basics
猜你喜欢

Go implements distributed locks

An annotation elegant implementation of interface data desensitization

ssm项目环境初步搭建

Seekbar custom pictures are not displayed completely up, down, left, right / bitmaptodrawable / bitmaptodrawable inter rotation / paddingstart/paddingend /thumboffset

【TcaplusDB知识库】TcaplusDB技术支持介绍
![Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]](/img/06/cc3c512e69455416fe81943bebacca.png)
Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]

88.(cesium篇)cesium聚合图

【TcaplusDB知识库】TcaplusDB-tcaplusadmin工具介绍

Source code analysis of go redsync distributed lock
![恢复二叉搜索树[根据题意模拟->发现问题->分析问题->见招拆招]](/img/06/cc3c512e69455416fe81943bebacca.png)
恢复二叉搜索树[根据题意模拟->发现问题->分析问题->见招拆招]
随机推荐
Distributed ID solution
迅为龙芯开发板pmon下Ejtag-设置硬件断点指令
Four distributed session solutions
2D human posture estimation deeppose
DevOps笔记-05:IT行业中BA、SM、PO、PM、PD、Dev、Ops、QA都是什么角色
【Ubuntu】【Mysql】ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]
Open source demo| you draw and I guess -- make your life more interesting
Deeply analyzing the business logic of "chain 2+1" mode
Do you feel confused when you study at three in the morning?
Share 60 divine vs Code plug-ins
leetcode - 295. Median data flow
微秒级 TCP 时间戳
Why is informatization ≠ digitalization? Finally someone made it clear
不同的二叉搜索樹[自下而上回溯生成樹+記憶搜索--空間換時間]
一个注解优雅的实现 接口数据脱敏
An internal error occurred during: 'Retrieving archetypes:'.
Laravel v. about laravel using the pagoda panel to connect to the cloud database (MySQL)
seekbar 自定义图片上下左右显示不全 / bitmapToDrawable / bitmapToDrawable互转 / paddingStart/paddingEnd /thumbOffset
相同的树[从部分到整体]