Query a column with the same name as an operator

Поиск
Список
Период
Сортировка
От Java Developer
Тема Query a column with the same name as an operator
Дата
Msg-id b8dc10ca1d9148f271b557f872062a9af68c19da.camel@wagemaker.co.uk
обсуждение исходный текст
Ответы Re: Query a column with the same name as an operator  (Magnus Hagander <magnus@hagander.net>)
Список 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 по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: how to check that recovery is complete
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Query a column with the same name as an operator