zoukankan      html  css  js  c++  java
  • mysql 表信息 类似于sqlserver中的sysobjects syscolumns sysproperties等

    create view SystemInfo
    as
    SELECT table_name,ordinal_position as colorder,column_name as colName,
      case extra when 'auto_increment' then 1 else 0 end as IsIdentity,
      case column_key when 'pri' then 1 else 0 end as isKey,
      data_type as type,0 as bits,
      case  when character_maximum_length is NULL then numeric_precision else character_maximum_length end as length,
      numeric_scale as digit,
      case is_nullable when 'yes' then 0 else 1 end as isnullable,
      column_default as defaultValue,
      column_comment as memo,
      concat(table_name,'.',column_name) as col
    FROM information_schema.COLUMNS ; 
  • 相关阅读:
    隐式马尔科夫模型
    TCP与UDP协议
    语法分析
    requests发送HTTP请求
    IPv6协议
    IP协议
    路由协议
    Django表单验证
    PDB调试Python程序
    word2vec模型原理与实现
  • 原文地址:https://www.cnblogs.com/kuailewangzi1212/p/2159562.html
Copyright © 2011-2022 走看看