in reply to Querying and parsing MySQL data types
mysql> SHOW COLUMNS FROM student LIKE 's%';
+------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+------------------+------+-----+---------+----------------+
| sex | enum('F','M') | NO | | NULL | |
| student_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
+------------+------------------+------+-----+---------+----------------+
I suppose that doesn't help much, because you still have to parse out all the stuff in 'Type' and 'Extra'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Querying and parsing MySQL data types
by LanX (Saint) on Nov 30, 2018 at 22:35 UTC |