public inbox for [email protected]  
help / color / mirror / Atom feed
From: Arbol One <[email protected]>
To: PostGreSQL MailingList <[email protected]>
To: [email protected] <[email protected]>
Cc: David G. Johnston <[email protected]>
Subject: Re: Wired behaviour from SELECT
Date: Sat, 23 Nov 2024 04:47:48 -0500
Message-ID: <BYAPR12MB2808B1C3833C91B68FEF9D8ABA2C2@BYAPR12MB2808.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CAKFQuwahNdTb3kHWyDGnxkTqD3oH18tS597y3WKv8UdNz5-xhw@mail.gmail.com>
References: <BYAPR12MB280818626E29A0CBC38DAEAABA232@BYAPR12MB2808.namprd12.prod.outlook.com>
	<CAKFQuwahNdTb3kHWyDGnxkTqD3oH18tS597y3WKv8UdNz5-xhw@mail.gmail.com>

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 <[email protected]> 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 [ í ]

view thread (5+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Wired behaviour from SELECT
  In-Reply-To: <BYAPR12MB2808B1C3833C91B68FEF9D8ABA2C2@BYAPR12MB2808.namprd12.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox