pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unable to find column
5+ messages / 3 participants
[nested] [flat]

* Unable to find column
@ 2024-01-15 16:16  arun chirappurath <arunsnmimt@gmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: arun chirappurath @ 2024-01-15 16:16 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Dear all,

I have a table automobile which has a column id.

Table consists of id,make,year of manufacturing

I use dbeaver for querying..

Select * from automobile provides me results

However select id from automobile yields column doesn't exists.

I tried double quotes on id As well but same error.

But if I drag and drop id or use the id which is auto prompted from
dbeaver,it works 💪.

select "id" from automobile using drag and drop of id in dbeaver works.

But if I manually type "id" it won't.

Any clue on this.

Visually both statements are alike


Table is in public schema.

Thanks,
Arun

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Unable to find column
@ 2024-01-15 16:29  Ian Harding <harding.ian@gmail.com>
  parent: arun chirappurath <arunsnmimt@gmail.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Ian Harding @ 2024-01-15 16:29 UTC (permalink / raw)
  To: arun chirappurath <arunsnmimt@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On Mon, Jan 15, 2024 at 8:17 AM arun chirappurath <arunsnmimt@gmail.com>
wrote:

> Dear all,
>
> I have a table automobile which has a column id.
>
> Table consists of id,make,year of manufacturing
>
> I use dbeaver for querying..
>
> Select * from automobile provides me results
>
> However select id from automobile yields column doesn't exists.
>
> I tried double quotes on id As well but same error.
>
> But if I drag and drop id or use the id which is auto prompted from
> dbeaver,it works 💪.
>
> select "id" from automobile using drag and drop of id in dbeaver works.
>

Possibly there is a case sensitivity issue. If you use double quotes the
string is protected and searched for with explicit case. If not it is
folded to lower case.

I don’t know about dbeaver but I suspect case sensitivity.

>
> But if I manually type "id" it won't.
>
> Any clue on this.
>
> Visually both statements are alike
>
>
> Table is in public schema.
>
> Thanks,
> Arun
>
>
>
>
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Unable to find column
@ 2024-01-15 16:33  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: arun chirappurath <arunsnmimt@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Adrian Klaver @ 2024-01-15 16:33 UTC (permalink / raw)
  To: arun chirappurath <arunsnmimt@gmail.com>; pgsql-general@lists.postgresql.org

On 1/15/24 08:16, arun chirappurath wrote:
> Dear all,
> 
> I have a table automobile which has a column id.
> 
> Table consists of id,make,year of manufacturing
> 
> I use dbeaver for querying..
> 
> Select * from automobile provides me results
> 
> However select id from automobile yields column doesn't exists.
> 
> I tried double quotes on id As well but same error.
> 
> But if I drag and drop id or use the id which is auto prompted from 
> dbeaver,it works 💪.
> 
> select "id" from automobile using drag and drop of id in dbeaver works.
> 
> But if I manually type "id" it won't.
> 
> Any clue on this.

Do you have psql(https://www.postgresql.org/docs/current/app-psql.html( 
available?

If so in psql what does:

\d automobile

return?


> 
> Visually both statements are alike
> 
> 
> Table is in public schema.
> 
> Thanks,
> Arun
> 
> 
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Unable to find column
@ 2024-01-15 17:26  arun chirappurath <arunsnmimt@gmail.com>
  parent: Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 5+ messages in thread

From: arun chirappurath @ 2024-01-15 17:26 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general@lists.postgresql.org

Hi Adrian,

\d shows the tables and this id which is a sequence.

Regards,
Arun

On Mon, 15 Jan 2024 at 22:03, Adrian Klaver <adrian.klaver@aklaver.com>
wrote:

> On 1/15/24 08:16, arun chirappurath wrote:
> > Dear all,
> >
> > I have a table automobile which has a column id.
> >
> > Table consists of id,make,year of manufacturing
> >
> > I use dbeaver for querying..
> >
> > Select * from automobile provides me results
> >
> > However select id from automobile yields column doesn't exists.
> >
> > I tried double quotes on id As well but same error.
> >
> > But if I drag and drop id or use the id which is auto prompted from
> > dbeaver,it works 💪.
> >
> > select "id" from automobile using drag and drop of id in dbeaver works.
> >
> > But if I manually type "id" it won't.
> >
> > Any clue on this.
>
> Do you have psql(https://www.postgresql.org/docs/current/app-psql.html(
> available?
>
> If so in psql what does:
>
> \d automobile
>
> return?
>
>
> >
> > Visually both statements are alike
> >
> >
> > Table is in public schema.
> >
> > Thanks,
> > Arun
> >
> >
> >
> >
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Unable to find column
@ 2024-01-15 17:35  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: arun chirappurath <arunsnmimt@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Adrian Klaver @ 2024-01-15 17:35 UTC (permalink / raw)
  To: arun chirappurath <arunsnmimt@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On 1/15/24 09:26, arun chirappurath wrote:
> Hi Adrian,
> 
> \d shows the tables and this id which is a sequence.

What I asked for was the output of:

\d automobile

Add that output to your reply.

> 
> Regards,
> Arun
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2024-01-15 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 16:16 Unable to find column arun chirappurath <arunsnmimt@gmail.com>
2024-01-15 16:29 ` Ian Harding <harding.ian@gmail.com>
2024-01-15 16:33 ` Adrian Klaver <adrian.klaver@aklaver.com>
2024-01-15 17:26   ` arun chirappurath <arunsnmimt@gmail.com>
2024-01-15 17:35     ` Adrian Klaver <adrian.klaver@aklaver.com>

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