MySQL Forums
Forum List  »  MySQL Workbench

Re: Queries returning 0 even though data exists
Posted by: christopher ottersberg
Date: May 29, 2018 08:15AM

UPDATE:

So I've also noticed in my date table I'm getting mixed results. I workbench I'm only seeing 5 entries but in CLI I see 9? I don't understand why I'm getting these different results.

09:12:07 SELECT * FROM date_table LIMIT 0, 300000 5 row(s) returned 0.046 sec / 0.000 sec

'1', '2018-05-22'
'2', '2018-05-23'
'3', '2018-05-24'
'4', '2018-05-25'
'5', '2018-05-26'


mysql> SELECT * FROM date_table;
--------------
SELECT * FROM date_table
--------------

+---------+------------+
| date_id | date_data |
+---------+------------+
| 1 | 2018-05-22 |
| 2 | 2018-05-23 |
| 3 | 2018-05-24 |
| 4 | 2018-05-25 |
| 5 | 2018-05-26 |
| 6 | 2018-05-27 |
| 7 | 2018-05-28 |
| 8 | 2018-05-29 |
| 9 | 2018-05-30 |
+---------+------------+
9 rows in set (0.00 sec)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Queries returning 0 even though data exists
72
May 29, 2018 08:15AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.