Maybe I'm missing something painfully obvious but I'm trying to select from a table with a column called 'email' with type character(50).
I set up a simple test and i can successfully query every other column except for this one. For now the columns 'name' and 'password' are also of type character(50);
I'm copying and pasting the sample email 'johnsmith@gmail.com' exactly as is listed in the database and I am sure there are no extra spaces.
Here is my table called 'users':
id | name | email | password
---------------------------------------------
10 | john | johnsmith@gmail.com | adsfpokasdf
My query is:
SELECT name FROM users WHERE email = 'johnsmith@gmail.com';
Is there a problem with my choice of the column type?
Here is a picture: Why is this postgresql SELECT statement returning 0 rows?