SELECT COLUMN_NAME 字段名称, COLUMN_TYPE 数据类型, IF(IS_NULLABLE='NO','是','否') AS '必填', COLUMN_COMMENT 注释 FROM INFORMATION_SCHEMA.COLUMNS WHERE --数据库名 table_schema = 'db' AND -- 表名;不写默认查询所有表数据 table_name = 'tablename'
Copyright @ 2024 刘小怪 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster