From: | Arbol One <ArbolOne(at)hotmail(dot)ca> |
---|---|
To: | PostGreSQL MailingList <pgsql-general(at)postgresql(dot)org>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Subject: | Re: Wired behaviour from SELECT |
Date: | 2024-11-23 09:47:48 |
Message-ID: | BYAPR12MB2808B1C3833C91B68FEF9D8ABA2C2@BYAPR12MB2808.namprd12.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Oops!
I am putting too many hours in front of the computer, better take a break 😳
On 2024-11-22 3:12 p.m., David G. Johnston wrote:
> On Fri, Nov 22, 2024 at 1:07 PM Arbol One <arbolone(at)hotmail(dot)ca> wrote:
>
> The below sql statement produces the right output
> SELECT nickname, password FROM password WHERE id='0938105618107N1';
>  nickname  | password
> -------------+----------
> Â Piccard@@21 |Â Arbol
> (1 row)
> However, if this sql statement produces the wrong output
> *SELECT nickname, password FROM password WHERE nickname='Arbol';
> Â nickname | password
> ----------+----------
> (0 rows)*
> What am I doing wrong?
>
> Naming a column in your table the same name as the table is
> problematic generally. As for the query, if they are both intended to
> return the same row the value Arbol is in the password column, not the
> nickname column. You seem to have reversed the data for the two columns.
>
> David J.
>
--
*/ArbolOne â„¢/*
Using Fire Fox and Thunderbird.
ArbolOne is composed of students and volunteers dedicated to providing
free services to charitable organizations.
ArbolOne's development on Java, PostgreSQL, HTML and Jakarta EE is in
progress [ Ã ]
From | Date | Subject | |
---|---|---|---|
Next Message | Arbol One | 2024-11-23 09:49:57 | Re: Wired behaviour from SELECT |
Previous Message | David Mullineux | 2024-11-22 23:55:30 | Re: Wired behaviour from SELECT |