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");

个)

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 商店二级域名

atitit。获取表格的字段注释metadata的原理以及AND 字段表格描述文档方案的更多相关文章

  1. sqlserver添加表、字段注释

    引用 :http://begoodluck.blog.163.com/blog/static/20450728020141191412788/ 1.sqlserver用语句给表注释EXECUTE sp ...

  2. sqlserver添加查询 表、字段注释(转)

    环境:xp sp3,sql server2008 .sqlserver用语句给表注释 EXECUTE sp_addextendedproperty N'MS_Description', N'表注释', ...

  3. Atitit.获取某个服务 网络邻居列表 解决方案

    Atitit.获取某个服务 网络邻居列表 解决方案 原理,带入某个ip扫描从0---255 很快,多线程几秒就可以出来. 使用CountDownLatch来join线程.. 返回  [{ " ...

  4. 在oracle中操作表及字段注释,查询一个表的所有字段名以及属性和约束

    1.查询表注释 SELECT * FROM USER_TAB_COMMENTS; 三列:TABLE_NAME,TABLE_TYPE,COMMENTS 2.查询字段注释 SELECT * FROM US ...

  5. Activiti6系列(1)- 核心数据库表及字段注释说明

    前言 本文是根据<疯狂工作流讲义-Activiti6.0>一书中提取过来的,有兴趣的可以去当当网买这本书,讲的很不错,最后还有实战案例. 虽然是提取过来的,但完全靠手打梳理,觉得有用的小伙 ...

  6. SpringBoot接口 - 如何生成接口文档之非侵入方式(通过注释生成)Smart-Doc?

    通过Swagger系列可以快速生成API文档,但是这种API文档生成是需要在接口上添加注解等,这表明这是一种侵入式方式: 那么有没有非侵入式方式呢, 比如通过注释生成文档? 本文主要介绍非侵入式的方式 ...

  7. java文档注释--javadoc的用法

    1.前言 Java中有三种注释方式.前两种分别是 // 和 /* */,主要用于代码的注释,以此来方便代码的可读性.第三种被称作说明注释或文档注释,它以 /** 开始,以 */结束,文档注释允许你在程 ...

  8. 转 创建 JavaScript XML 文档注释

    http://www.cnblogs.com/chenxizhang/archive/2009/07/12/1522058.html 如何:创建 JavaScript XML 文档注释 Visual ...

  9. java文档注释主要使用方法

    一.java包含哪些注释 1.//用于单行注释. 2./*...*/用于多行注释,从/*开始,到*/结束,不能嵌套. 3./**...*/则是为支持jdk工具javadoc.exe而特有的注释语句.这 ...

随机推荐

  1. signal

    //signaltest.c // 子线程阻塞,等待信号,然后输出字符串 // 主线程从键盘录入字符,给子线程发信号. #include <stdio.h> #include <un ...

  2. jenkins使用slave报编码错误[WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!

    jenkins:master-slave 模式: master编码配置: slave编码配置: 可以看出master 和 slave的配置是一样的,但是当项目在slave上执行的时候,偶尔会报如下错误 ...

  3. C语言宏定义和宏定义函数

    要写好C语言,漂亮的宏定义是非常重要的.宏定义可以帮助我们防止出错,提高代码的可移植性和可读性等. 在软件开发过程中,经常有一些常用或者通用的功能或者代码段,这些功能既可以写成函数,也可以封装成为宏定 ...

  4. Echarts动画效果:实现数据左右移动

    1.业务背景 图形实时从后台获取数据,让图形从最右边出现,每隔一秒向左移一位,当最左边的数据移到Y轴时,最左边的数据移出屏幕,最右边增加一个数.实现一个从右往左动画的效果 2.先看下项目中的demo解 ...

  5. React同构直出优化总结

    收录待用,修改转载已取得腾讯云授权 作者:郭林烁 joeyguo 原文地址 React 的实践从去年在 PC QQ家校群开始,由于 PC 上的网络及环境都相当好,所以在使用时可谓一帆风顺,偶尔遇到点小 ...

  6. [ES6] 01. Intro to ES6 and traceur compiler

    ---恢复内容开始--- ES6 is ECMAScript version 6, which JavaScript is based on. The next version of JavaScri ...

  7. 2014年七月最佳jQuery插件荟萃

    本月的jQuery插件荟萃我们将介绍几款非常不错的jQuery插件,涵盖了表单,幻灯,页面设计等等方面,相信大家肯定会喜欢! Select or Die 一款帮助开发者美化并且强化选择框的jQuery ...

  8. DD_belatedPNG

    我们知道IE6是不支持透明的PNG的,这无疑限制了网页设计的发挥空间. 然而整个互联网上解决这个IE6的透明PNG的方案也是多不胜数,从使用IE特有的滤镜或是e­xpression,再到javascr ...

  9. ajax交互Struts2的action(1)

    1.客户端网页代码 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://w ...

  10. js 实现sleep函数

    1.sleep函数 sleep函数作用是让线程休眠,等到指定时间在重新唤起. 2.sleep实现 <!DOCTYPE html> <html lang="zh"& ...