Hi all,
I am a total newbie to mysql and I have been trying to educate myself.
I created a database and a table within it called "simple", see below.
I loaded data in to "simple" from a tab separated file.
The table simple has the following types -
mysql> describe simple;
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| joined | date | YES | | NULL | |
| name | varchar(20) | YES | | NULL | |
| age | varchar(20) | YES | | NULL | |
| sex | varchar(10) | YES | | NULL | |
+--------+-------------+------+-----+---------+-------+
If I enter one record in my .txt (tab separated file) and then try and retrieve all records from that table I can see all the data with no problem, see directly below
mysql> select * from simple;
+------------+------+------+------+
| joined | name | age | sex |
+------------+------+------+------+
| 2006-01-01 | bob | 10 | male |
+------------+------+------+------+
1 row in set (0.00 sec)
If I enter more than one record and then try to retrieve all the data, the formatting goes wrong, where I can't see the whole of the first date and the end of the last field in the first record.
mysql> select * from simple;
+------------+------+------+-------+
| joined | name | age | sex |
+------------+------+------+-------+
| 006-01-01 | bob | 10 | male
| 2006-01-02 | tim | 12 | male |
+------------+------+------+-------+
If I add more records, the formatting is worse and the joined column makes no sense all the way down.
I am sure this is something that a mysql pro could answer very quickly.
All help much appreciated.
Regards
Bhogaj31
I am a total newbie to mysql and I have been trying to educate myself.
I created a database and a table within it called "simple", see below.
I loaded data in to "simple" from a tab separated file.
The table simple has the following types -
mysql> describe simple;
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| joined | date | YES | | NULL | |
| name | varchar(20) | YES | | NULL | |
| age | varchar(20) | YES | | NULL | |
| sex | varchar(10) | YES | | NULL | |
+--------+-------------+------+-----+---------+-------+
If I enter one record in my .txt (tab separated file) and then try and retrieve all records from that table I can see all the data with no problem, see directly below
mysql> select * from simple;
+------------+------+------+------+
| joined | name | age | sex |
+------------+------+------+------+
| 2006-01-01 | bob | 10 | male |
+------------+------+------+------+
1 row in set (0.00 sec)
If I enter more than one record and then try to retrieve all the data, the formatting goes wrong, where I can't see the whole of the first date and the end of the last field in the first record.
mysql> select * from simple;
+------------+------+------+-------+
| joined | name | age | sex |
+------------+------+------+-------+
| 006-01-01 | bob | 10 | male
| 2006-01-02 | tim | 12 | male |
+------------+------+------+-------+
If I add more records, the formatting is worse and the joined column makes no sense all the way down.
I am sure this is something that a mysql pro could answer very quickly.
All help much appreciated.
Regards
Bhogaj31