当前位置:网站首页>Database table structure
Database table structure
2022-06-11 00:13:00 【Mr. No】
Database table structure
mysql
SELECT
COLUMN_NAME Name ,
COLUMN_TYPE data type ,
DATA_TYPE Field type ,
CHARACTER_MAXIMUM_LENGTH length ,
IS_NULLABLE Is it empty ,
COLUMN_COMMENT remarks
FROM
INFORMATION_SCHEMA.COLUMNS
where
-- developerclub For database name , At that time, you only need to modify the database to export the table structure
table_schema ='chengheDev'
AND
-- article Is the name of the watch , Then change to the name of the table you want to export
-- If not , Data in all tables will be queried by default , In this way, you may not know which fields are in which table , Therefore, it is recommended to write the name of the to be exported
table_name = 'sab_b_jointCompany'
oracle
SELECT
--t1.Table_Name || chr(13) || t3.comments AS " Table name and description ",
ROWNUM ,
t1.Column_Name AS " Field name ",
t1.DATA_TYPE AS " data type ",
t1.DATA_LENGTH AS " length ",
t1.NullAble AS " Is it empty ",
t2.Comments AS " Field description ",
t1.Data_Default " The default value is "
--t4.created AS " Time to build the table "
--t3.comments AS " Table description ",
FROM cols t1
LEFT JOIN user_col_comments t2
ON t1.Table_name = t2.Table_name
AND t1.Column_Name = t2.Column_Name
LEFT JOIN user_tab_comments t3
ON t1.Table_name = t3.Table_name
LEFT JOIN user_objects t4
ON t1.table_name = t4.OBJECT_NAME
WHERE NOT EXISTS (SELECT t4.Object_Name
FROM User_objects t4
WHERE t4.Object_Type = 'TABLE'
AND t4.Temporary = 'Y'
AND t4.Object_Name = t1.Table_Name)
and t1.TABLE_NAME=' The table name you want to query '
ORDER BY t1.Table_Name, t1.Column_ID;
边栏推荐
- Collection delete element technique removeif
- Excel单元格
- It is said that the verification code is a barrier in the crawler. I can break through it with only five lines of code.
- Njupt South Post collection_ Experiment 1
- MP框架基本操作(自用)
- Bluetooth development (7) -- L2CAP layer connection process
- csdn每日一练——找出最接近元素并输出下标
- VTK example -- three intersecting planes
- Pseudo static setting of Typecho - starze V Club
- Lambda learning records
猜你喜欢
![[pyGame games] story stream recommendation: what kind of games can you like? (devil lover, bully's wife version)](/img/77/653968895434f805d81a10406dcf6f.png)
[pyGame games] story stream recommendation: what kind of games can you like? (devil lover, bully's wife version)
![[pyGame collection] please check the game guide through childhood: are there any games you have played? (attach five source codes for self access)](/img/f8/e71a1524f73364053952099e7b9588.png)
[pyGame collection] please check the game guide through childhood: are there any games you have played? (attach five source codes for self access)

Bluetooth development (8) -- avdtp connection process

Njupt Nanyou Discrete Mathematics_ Experiment 3

Exemple VTK - - trois plans qui se croisent

Leetcode-209 minimum length subarray
![[pyGame games] here it is. This Gobang game is super A. share it with your friends~](/img/76/faea3558ed6fadff755c517922088b.png)
[pyGame games] here it is. This Gobang game is super A. share it with your friends~

The website is harmed by XSS hanging horse

【Turtle表白合集】“海底月是天上月,眼前人是心上人。”余生多喜乐,长平安~(附3款源码)

A simple understanding of B tree
随机推荐
Njupt South Post collection_ Experiment 1
【Opencv实战】这个印章“神器”够牛,节省了时间提高了效率,厉害~(附完整源码)
[appearance detection artifact] come on, please show me your unique skill (is this appearance worthy of the audience?)
[auto reply or remind assistant] Mom doesn't have to worry about me missing messages any more (10 Line Code Series)
【Go语言学习】——并发编程
File转为MultipartFile的方法
The website is harmed by XSS hanging horse
[auto reply Script] happy new year. I typed every word myself, not forwarded it~
Things about Bluetooth development (10) -- getting to know ble for the first time
[database] types of NoSQL database
插入排序
A simple understanding of B tree
Bluetooth development (6) -- literacy of Bluetooth protocol architecture
【Pygame小游戏】不怕你走不过系列:极致AI走迷宫,学习完带你打开新世界大门~(附游戏源码)
【自动回复小脚本】新年快乐,每一个字都是我亲自手打的,不是转发哦~
ASP. Net programming version C (notes along with learning progress)
IGBT and third generation semiconductor SiC double pulse test scheme
[daily] robots Txt allow all search engines to include
Is it safe for changtou school to open an account? Is it reliable?
Excel单元格