Unable to find column

Started by arun chirappurathabout 2 years ago5 messagesgeneral
Jump to latest
#1arun chirappurath
arunsnmimt@gmail.com

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

#2Ian Harding
harding.ian@gmail.com
In reply to: arun chirappurath (#1)
Re: Unable to find column

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.

Show quoted text

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

#3Adrian Klaver
adrian.klaver@aklaver.com
In reply to: arun chirappurath (#1)
Re: Unable to find column

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

#4arun chirappurath
arunsnmimt@gmail.com
In reply to: Adrian Klaver (#3)
Re: Unable to find column

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:

Show quoted text

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

#5Adrian Klaver
adrian.klaver@aklaver.com
In reply to: arun chirappurath (#4)
Re: Unable to find column

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