I Have a table when i select from the table i got the invalid data as
mysql> select budgetID,StartDate,modifiedBy from Table_name order by budgetID desc limit 10;
+----------+---------------------+----------------------+
| budgetID | StartDate | modifiedBy |
+----------+---------------------+----------------------+
| 364 | $091-24-68 27:49:32 | -9187343239835811836 |
| 363 | NULL | -9187343239835811840 |
| 362 | $091-24-69 14:21:19 | -9187343239835811840 |
| 361 | $091-24-69 14:21:19 | -9187343239835811840 |
| 360 | $091-24-69 14:21:19 | -9187343239835811840 |
| 359 | $091-24-69 14:21:19 | -9187343239835811840 |
| 358 | �301-32-83 19:54:95 | -9187343239835811840 |
| 357 | �301-32-83 19:54:95 | -9187343239835811840 |
| 356 | $091-24-69 05:61:82 | -9187343239835811840 |
| 355 | �301-32-83 10:95:58 | -9187343239835811840 |
+----------+---------------------+----------------------+
i have inserted the values for budgetID=365 as
budgetID 351
StartDate 2012-02-01 00:00:00
modifiedBy 1055
but while selecting the result i am getting invalid output.
where budgetID is Primay key bigint and StartDate is datetime and modifiedBy bigint.
AND
mysql> show variables like "%character%";
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
mysql> show variables like "%colla%";
+----------------------+-------------------+
| Variable_name | Value |
+----------------------+-------------------+
| collation_connection | utf8_general_ci |
| collation_database | latin1_swedish_ci |
| collation_server | latin1_swedish_ci |
+----------------------+-------------------+
What may the issue behind this.?
when I created a table with the same structure as this table and inserted the record then the select query is showing result OK.