pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Java Developer <java@wagemaker.co.uk>
To: pgsql-general@lists.postgresql.org
Subject: Query a column with the same name as an operator
Date: Fri, 06 Nov 2020 08:59:31 +0000
Message-ID: <b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk> (raw)

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 






view thread (3+ messages)  latest in thread

Message-ID: <b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk>
Permalink:  ../b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk/
Also on:    postgresql.org/message-id/b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: java@wagemaker.co.uk
  Subject: Re: Query a column with the same name as an operator
  In-Reply-To: <b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk>
  References: <b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk>

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

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