The table provides NDB dictionary information
about columns of NDB tables.
dictionary_columns has the columns listed
here (with brief descriptions):
table_idID of the table containing the column
column_idThe column's unique ID
nameName of the column
column_typeData type of the column from the NDB API; see Column::Type, for possible values
default_valueThe column's default value, if any
nullableEither of
NULLorNOT NULLarray_typeThe column's internal attribute storage format; one of
FIXED,SHORT_VAR, orMEDIUM_VAR; for more information, see Column::ArrayType, in the NDB API documentationstorage_typeType of storage used by the table; either of
MEMORYorDISKprimary_key1if this is a primary key column, otherwise0partition_key1if this is a partitioning key column, otherwise0dynamic1if the column is dynamic, otherwise0auto_inc1if this is anAUTO_INCREMENTcolumn, otherwise0
You can obtain information about all of the columns in a given
table by joining dictionary_columns with the
dictionary_tables table, like
this:
SELECT dc.*
FROM dictionary_columns dc
JOIN dictionary_tables dt
ON dc.table_id=dt.table_id
WHERE dt.table_name='t1'
AND dt.database_name='mydb';
Blob columns are not shown in this table. This is a known issue.