atitit。获取表格的字段注释metadata的原理以及AND 字段表格描述文档方案
atitit。获取表格的字段注释metadata的原理以及AND 字段表格描述文档方案
1. 通过sql ide navicate获取(推荐)通过meatadata数据库获取 1
2. 通过代码获取 1
2.1. ResultSet的字段列表 fields(23个) 2
3. 通过phpmyadmin>>表结构,复制表头,word里面行专列 6
3.1. word里面行专列 6
1. 通过sql ide navicate获取(推荐)通过meatadata数据库获取
mysql 数据字段文档
获取表单描述:
SELECT TABLE_NAME, TABLE_COMMENT FROM information_schema.tables
获取表行的备注:
select column_name,COLUMN_COMMENT from information_schema.`COLUMNS` where TABLE_NAME='mall_shop_info'
shop_intro店铺介绍
shop_notice店铺公告
shop_creat_time店铺创建时间
goods_num店铺产品数量
open_flg店铺关闭,1为关闭
lock_flg店铺锁定,1为锁定
map_x地图经线坐标
作者:: 老哇的爪子 Attilax 艾龙, EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
2. 通过代码获取
private static void t1() throws SQLException {
//t4();
Connection con=IocX.getBean(Connection.class);
DatabaseMetaData dbmd = con.getMetaData();
String tableName="mall_order_info";
ResultSet rs = dbmd.getColumns(con.getCatalog(), "%", tableName, null);
while(rs.next()) {
String columnName = rs.getString("COLUMN_NAME");
String columnType = rs.getString("TYPE_NAME");
int datasize = rs.getInt("COLUMN_SIZE");
int digits = rs.getInt("DECIMAL_DIGITS");
int nullable = rs.getInt("NULLABLE");
String COLUMN_COMMENT = rs.getString("REMARKS");
2.1. ResultSet的字段列表 fields(23个)
Line 5: column name: TABLE_CAT
Line 13: column name: TABLE_SCHEM
Line 19: column name: TABLE_NAME
Line 25: column name: COLUMN_NAME
Line 31: column name: DATA_TYPE
Line 37: column name: TYPE_NAME
Line 43: column name: COLUMN_SIZE
Line 49: column name: BUFFER_LENGTH
Line 55: column name: DECIMAL_DIGITS
Line 61: column name: NUM_PREC_RADIX
Line 67: column name: NULLABLE
Line 73: column name: REMARKS
Line 79: column name: COLUMN_DEF
Line 85: column name: SQL_DATA_TYPE
Line 91: column name: SQL_DATETIME_SUB
Line 97: column name: CHAR_OCTET_LENGTH
Line 103: column name: ORDINAL_POSITION
Line 109: column name: IS_NULLABLE
Line 115: column name: SCOPE_CATALOG
Line 121: column name: SCOPE_SCHEMA
Line 127: column name: SCOPE_TABLE
Line 133: column name: SOURCE_DATA_TYPE
Line 139: column name: IS_AUTOINCREMENT
[com.mysql.jdbc.Field@171be16
catalog: null
table name:
original table name: null
column name: TABLE_CAT
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@76c95b
catalog: null
table name:
original table name: null
column name: TABLE_SCHEM
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@9d966d
catalog: null
table name:
original table name: null
column name: TABLE_NAME
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1feea1e
catalog: null
table name:
original table name: null
column name: COLUMN_NAME
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@bc6a08
catalog: null
table name:
original table name: null
column name: DATA_TYPE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1d54e44
catalog: null
table name:
original table name: null
column name: TYPE_NAME
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1057212
catalog: null
table name:
original table name: null
column name: COLUMN_SIZE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@843ce4
catalog: null
table name:
original table name: null
column name: BUFFER_LENGTH
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1b9bccc
catalog: null
table name:
original table name: null
column name: DECIMAL_DIGITS
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@11a241f
catalog: null
table name:
original table name: null
column name: NUM_PREC_RADIX
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@139b06a
catalog: null
table name:
original table name: null
column name: NULLABLE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@6d05ee
catalog: null
table name:
original table name: null
column name: REMARKS
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1a07061
catalog: null
table name:
original table name: null
column name: COLUMN_DEF
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@32007f
catalog: null
table name:
original table name: null
column name: SQL_DATA_TYPE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@bec229
catalog: null
table name:
original table name: null
column name: SQL_DATETIME_SUB
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1bd2497
catalog: null
table name:
original table name: null
column name: CHAR_OCTET_LENGTH
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@ad6ab6
catalog: null
table name:
original table name: null
column name: ORDINAL_POSITION
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@138ecb8
catalog: null
table name:
original table name: null
column name: IS_NULLABLE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@3d2ff1
catalog: null
table name:
original table name: null
column name: SCOPE_CATALOG
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@11684ac
catalog: null
table name:
original table name: null
column name: SCOPE_SCHEMA
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1604c40
catalog: null
table name:
original table name: null
column name: SCOPE_TABLE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@12e1a27
catalog: null
table name:
original table name: null
column name: SOURCE_DATA_TYPE
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1), com.mysql.jdbc.Field@1b70047
catalog: null
table name:
original table name: null
column name: IS_AUTOINCREMENT
original column name: null
MySQL data type: -1( Unknown MySQL Type # -1)]
3. 通过phpmyadmin>>表结构,复制表头,word里面行专列
3.1. word里面行专列
表格工具》》》转换为换行符号<p>
shop_commend
shop_id 店铺id
user_id 用户id
shop_name 店铺名称
shop_country 店铺所在国家
shop_province 店铺所在省份
shop_city 店铺所在城市
shop_district 店铺所在区
shop_address 店铺所在详细地址
shop_images 店铺介绍中的图片
shop_logo 店铺logo
shop_template_img 店铺模板大图
shop_template 店铺模板
shop_management 店铺主营
shop_intro 店铺介绍
shop_notice 店铺公告
shop_creat_time 店铺创建时间
goods_num 店铺产品数量
open_flg 店铺关闭,1为关闭
lock_flg 店铺锁定,1为锁定
map_x 地图经线坐标
map_y 地图纬线坐标
map_zoom 地图比例
count_imgsize 图片总大小
shop_categories 店铺最后分类
shop_domain 商店二级域名
转载于:https://www.cnblogs.com/attilax/p/5963712.html
atitit。获取表格的字段注释metadata的原理以及AND 字段表格描述文档方案相关推荐
- 【知识小课堂】 mongodb 之字段中的【 数组】、【内嵌文档】
一.介绍 MONGODB 的表结构 很灵活 .主要还是因为 字段中可以包含 [ 数组].[内嵌文档]. 现在简单介绍一下 字段中的[ 数组].[内嵌文档]相关的一些操作 (为了方便理解,还是以表来理解 ...
- 2个字段并在一次插入一个字段里面_elasticsearch外用与内观(二)-当插入文档时,elasticsearch都在做什么...
Previous: elasticsearch外用与内观(一)-常用功能与使用方法 在了解了es的基本用法之后,我们再来看看当插入文档数据时,elasticsearch都在做什么. 首先,es的索引只 ...
- 办公软件excel表格_「教程」Office办公软件视频教程(幻灯片PPT 文档 表格 Keynote...
[教程]Office办公软件视频教程(幻灯片PPT 文档 表格 Keynote) 本次分享的内容为办公软件教程,一共14套.教程内容包括文档制作,幻灯片的制作,表格的制作等. 教程内容:PPT幻灯片教 ...
- 打印表格打印机没有反应_一分钟解决:不能打印、文档和表格也打不开
今天给大家分享前两天工作中遇到的一例故障:XP系统,所有的文档和表格都不开,打开文档表格会卡在office启动界面不动,多点几下office软件就卡死了,而且也不能打印,点击任何打印都没有反应,同时点 ...
- html获取cookie_知了汇智《XSS攻击-盗取cookie实战》课程文档讲解
文章来源:知了汇智冯老师 今天是<web安全-XSS攻击>系列的最后一篇啦,希望大家好好学习哦~ XSS之 知了汇智-禁卫实验室(GoDun.F) 1. 编写获取cookie的代码cook ...
- vscode 不展示文档注释内容_文本框这样用,实现文档不同板块内容高效联动,你还不知道吧...
--word2016系列教程之"文本框链接使用" 我们使用word文档进行手抄报排版或其他文档排版时,可能会出现一个板块的内容比较多,排不下去.需要在其它板块进行排列,像这样--, ...
- C# 如何给现有/新建PDF文档添加注释或标注
这篇文章主要介绍如何使用免费版PDF组件Free Spire.PDF及C#编程语言给现有PDF文档或新建的PDF文档中的文本添加注释或标注(完整代码附在文章末尾). 首先,下载 Free Spire. ...
- java操作word文档(文字,图片,表格添加以及替换操作)
注:本文由于个人工作需要,有对多个他人博文进行借鉴,但是多数博文都只是讲到了小部分,例如图片/表格的操作,都只有根据书签进行替换,比较片面,本人有总结到根据文字进行图片/表格的替换,希望可以帮到更多有 ...
- 2021-IEEE论文-深度神经网络在文档图像表格识别中的应用现状及性能分析
2021年5月12日收到, 2021年6月4日接受, 出版日期2021年6月9日, 当前版本日期2021年6月24日. 原论文下载地址 摘要 - Abstract 表格识别的第一阶段是检测文档中的 ...
最新文章
- shell训练营Day31
- datetime mysql 当天_MySQL 获得当前日期时间(以及时间的转换)
- Selenium UI 举例 getCssValue
- 头部外伤指什么_什么是颅骨缺损?
- 正则表达式的运算符优先级
- BadgerDAO锁仓量超过9亿美元
- 大学生html作业总结,总结 HTML标签作业
- Linux Web基础
- OA系统中的任务管理
- 华为联手沃达丰建立NB-IoT开放实验室
- 大理旅游策划方案——定位“风花雪月”,大理游客翻倍!
- ubuntu中无法安装vim
- 今天520,爱他就给他个家。
- 瑞数5维普期刊js逆向
- aws cloudfront
- java设计模式之模板
- 行业研究报告-全球与中国电脑机箱风扇市场现状及未来发展趋势
- 腾讯云 对象存储Java文件上传 学习资料整理
- 干扰:内部干扰/外部干扰/杂散干扰/互调干扰/阻塞干扰
- 网络安全--解除认证攻击wifi(详细教程)
热门文章
- js 调用webservice接口
- CVPR 2022 | 针对目标检测的重点与全局知识蒸馏(FGD)
- GitHub 5.9K,目标检测、跟踪、关键点全覆盖的年度开源项目来了!
- 结合人脸识别元辅助学习的AU单元检测
- 有偿数据收集 | 哈工大手写作文图片收集
- python Scrapy爬取天气预报,零基础的你也可以快速上手
- python动态规划算法最大k乘积_C语言使用DP动态规划思想解最大K乘积与乘积最大问题...
- 大数据预测实战-随机森林预测实战(一)-数据预处理
- opencv_python使用cv2.imread()读取中文路径报错问题(转)
- Bezier(贝塞尔)曲线(五阶)的轨迹规划在自动驾驶中的应用(五)