Re: column names with - and (

Поиск
Список
Период
Сортировка
От Oliveiros Cristina
Тема Re: column names with - and (
Дата
Msg-id 005f01c8f199$56711140$ec5a3d0a@marktestcr.marktest.pt
обсуждение исходный текст
Ответ на column names with - and (  ("maria s" <psmg01@gmail.com>)
Ответы Re: column names with - and (  ("maria s" <psmg01@gmail.com>)
Список pgsql-sql
You can enclose the names in quotes, then the characters are allowed
 
Sorry to mislead you :p
 
Best,
Oliveiros
 
 
----- Original Message -----
Sent: Tuesday, July 29, 2008 5:27 PM
Subject: Re: [SQL] column names with - and (

Maria,
 
The minus, open bracket and close bracket are illegal as identifier names
 
 
Best,
Oliveiros
 
----- Original Message -----
From: maria s
Sent: Tuesday, July 29, 2008 5:06 PM
Subject: [SQL] column names with - and (

Hi All,
When I am fetching the data from a table,
I am giving the column names with - and ( and ) like IL-a, IL-a(p30) etc..

select x1 as IL-a, x2 as IL-a(p30) from abc

But I am getting

ERROR:  syntax error at or near "-" and also t "(" , ")"

Can anyone help me to fix this?

Thank you,
Maria

В списке pgsql-sql по дате отправления:

Предыдущее
От: "maria s"
Дата:
Сообщение: Re: column names with - and (
Следующее
От: "maria s"
Дата:
Сообщение: Re: column names with - and (