public class ColumnInfo
extends java.lang.Object
select ordinal_position,column_name,data_type,type_name,column_comment
from information_schema.columns
where table_schema='db_name' and table_name='table_name'
and is_deleted=0
order by ordinal_position
| Constructor and Description |
|---|
ColumnInfo() |
| Modifier and Type | Method and Description |
|---|---|
ColumnDataType |
getDataType() |
java.lang.String |
getDefaultValue() |
java.lang.String |
getName() |
boolean |
isNullable() |
void |
setComment(java.lang.String comment) |
java.lang.String |
toString() |
public java.lang.String getName()
public ColumnDataType getDataType()
public void setComment(java.lang.String comment)
public boolean isNullable()
public java.lang.String getDefaultValue()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Alibaba Group. All rights reserved.