I'm facing a problem, in which I have a table in the DB and it contains the data. But when I do SELECT
, some data it returns and some do not.
For example:
In the Codigos
table I have the following data.
|idEquipamento|idCodigo|
| 1 | 123 |
| 2 | abc123 |
And when I do select
one returns result and another does not:
"SELECT idEquipamento, idCodigo FROM Codigos WHERE idCodigo = 123";
Return result!
"SELECT idEquipamento, cdCodigo FROM Codigos WHERE idCodigo = 'abc123'";
Does not return any records, as if they did not exist. But when I open the table the data is there, I can edit it and everything!
Note: I'm doing SELECT
by phpMyAdmin itself!