SELECT * FROM `COLUMNS`
|
TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME | ORDINAL_POSITION | COLUMN_DEFAULT | IS_NULLABLE | DATA_TYPE | CHARACTER_MAXIMUM_LENGTH | CHARACTER_OCTET_LENGTH | NUMERIC_PRECISION | NUMERIC_SCALE | DATETIME_PRECISION | CHARACTER_SET_NAME | COLLATION_NAME | COLUMN_TYPE | COLUMN_KEY | EXTRA | PRIVILEGES | COLUMN_COMMENT | GENERATION_EXPRESSION | SRS_ID | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
def | Test Suren | authors | id | 1 | NULL | NO | int | NULL | NULL | 10 | 0 | NULL | NULL | NULL | int(11) | PRI | auto_increment | select,insert,update,references | NULL | |||
def | Test Suren | authors | first_name | 2 | NULL | NO | varchar | 50 | 150 | NULL | NULL | NULL | utf8 | utf8_unicode_ci | varchar(50) | select,insert,update,references | NULL | |||||
def | Test Suren | authors | last_name | 3 | NULL | NO | varchar | 50 | 150 | NULL | NULL | NULL | utf8 | utf8_unicode_ci | varchar(50) | select,insert,update,references | NULL | |||||
def | Test Suren | authors | 4 | NULL | NO | varchar | 100 | 300 | NULL | NULL | NULL | utf8 | utf8_unicode_ci | varchar(100) | UNI | select,insert,update,references | NULL | |||||
def | Test Suren | authors | birthdate | 5 | NULL | NO | date | NULL | NULL | NULL | NULL | NULL | NULL | NULL | date | select,insert,update,references | NULL | |||||
def | Test Suren | authors | added | 6 | CURRENT_TIMESTAMP | NO | timestamp | NULL | NULL | NULL | NULL | 0 | NULL | NULL | timestamp | DEFAULT_GENERATED | select,insert,update,references | NULL | ||||
def | Test Suren | posts | id | 1 | NULL | NO | int | NULL | NULL | 10 | 0 | NULL | NULL | NULL | int(11) | PRI | auto_increment | select,insert,update,references | NULL | |||
def | Test Suren | posts | author_id | 2 | NULL | NO | int | NULL | NULL | 10 | 0 | NULL | NULL | NULL | int(11) | select,insert,update,references | NULL | |||||
def | Test Suren | posts | title | 3 | NULL | NO | varchar | 255 | 765 | NULL | NULL | NULL | utf8 | utf8_unicode_ci | varchar(255) | select,insert,update,references | NULL | |||||
def | Test Suren | posts | description | 4 | NULL | NO | varchar | 500 | 1500 | NULL | NULL | NULL | utf8 | utf8_unicode_ci | varchar(500) | select,insert,update,references | NULL | |||||
def | Test Suren | posts | content | 5 | NULL | NO | text | 65535 | 65535 | NULL | NULL | NULL | utf8 | utf8_unicode_ci | text | select,insert,update,references | NULL | |||||
def | Test Suren | posts | date | 6 | NULL | NO | date | NULL | NULL | NULL | NULL | NULL | NULL | NULL | date | select,insert,update,references | NULL | |||||
def | information_schema | CHARACTER_SETS | CHARACTER_SET_NAME | 1 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(64) | select | NULL | |||||
def | information_schema | CHARACTER_SETS | DEFAULT_COLLATE_NAME | 2 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(64) | select | NULL | |||||
def | information_schema | CHARACTER_SETS | DESCRIPTION | 3 | NULL | NO | varchar | 2048 | 6144 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(2048) | select | NULL | |||||
def | information_schema | CHARACTER_SETS | MAXLEN | 4 | NULL | NO | int | NULL | NULL | 10 | 0 | NULL | NULL | NULL | int(10) unsigned | select | NULL | |||||
def | information_schema | CHECK_CONSTRAINTS | CONSTRAINT_CATALOG | 1 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_bin | varchar(64) | select | NULL | |||||
def | information_schema | CHECK_CONSTRAINTS | CONSTRAINT_SCHEMA | 2 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_bin | varchar(64) | select | NULL | |||||
def | information_schema | CHECK_CONSTRAINTS | CONSTRAINT_NAME | 3 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_tolower_ci | varchar(64) | select | NULL | |||||
def | information_schema | CHECK_CONSTRAINTS | CHECK_CLAUSE | 4 | NULL | NO | longtext | 4294967295 | 4294967295 | NULL | NULL | NULL | utf8 | utf8_bin | longtext | select | NULL | |||||
def | information_schema | COLLATIONS | COLLATION_NAME | 1 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(64) | select | NULL | |||||
def | information_schema | COLLATIONS | CHARACTER_SET_NAME | 2 | NULL | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(64) | select | NULL | |||||
def | information_schema | COLLATIONS | ID | 3 | 0 | NO | bigint | NULL | NULL | 20 | 0 | NULL | NULL | NULL | bigint(20) unsigned | select | NULL | |||||
def | information_schema | COLLATIONS | IS_DEFAULT | 4 | NO | varchar | 3 | 9 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(3) | select | NULL | ||||||
def | information_schema | COLLATIONS | IS_COMPILED | 5 | NO | varchar | 3 | 9 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(3) | select | NULL |
|