Query a column with the same name as an operator - Mailing list pgsql-general

From Java Developer
Subject Query a column with the same name as an operator
Date
Msg-id b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk
Whole thread Raw
Responses Re: Query a column with the same name as an operator  (Magnus Hagander <magnus@hagander.net>)
List pgsql-general
Hello,

I am trying to query a column from a table I migrated from my MYSQL
into POSTGRESQL but I seem to be having issues with a few column names.

the column name cast is also an operator, I think zone may also be a
problem.

MYSQL: OK
SELECT id, start_date, local_time, country, city, region, temperature,
cast, humidity, wind, weather, zone FROM w_records WHERE city =
'Edinburgh' AND start_date LIKE '%2020-11-01%' ORDER BY id DESC;

I can run the SELECT * from FROM w_records WHERE city = 'Edinburgh' but
the above does not work.

Any idea how I can run a query that accept table name that is already a
Operator?

Many Thanks 




pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: how to check that recovery is complete
Next
From: Magnus Hagander
Date:
Subject: Re: Query a column with the same name as an operator