美文网首页
SpringBoot2.0+MybatisPlus3.0+Avu

SpringBoot2.0+MybatisPlus3.0+Avu

作者: jumper996 | 来源:发表于2019-06-01 18:52 被阅读0次

1.查询数据库信息Sql (2019-06-01)

-- 查询表
SELECT
    table_name AS tableName,
    ENGINE,
    table_comment AS comments,
    create_time AS createTime 
FROM
    information_schema.TABLES 
WHERE
    table_schema = ( SELECT DATABASE ( ));

-- 查询列
SELECT
    column_name AS columnName,
    data_type AS dataType,
    column_comment AS comments,
    column_key AS columnKey,
    is_nullable AS isNullable,
    column_type AS columnType,
    character_octet_length AS characterOctetLength,
    extra 
FROM
    information_schema.COLUMNS 
WHERE
    table_name = 'sy_user' 
    AND table_schema = ( SELECT DATABASE ( ) ) 
ORDER BY
    ordinal_position;   

最后选择用人人的代码生成器。暂停开发

相关文章

网友评论

      本文标题:SpringBoot2.0+MybatisPlus3.0+Avu

      本文链接:https://www.haomeiwen.com/subject/tmgatctx.html