column names with - and ( - Mailing list pgsql-sql

From maria s
Subject column names with - and (
Date
Msg-id d9d42a0f0807290906v1a1efabbm1304ddc2ab0f0b9@mail.gmail.com
Whole thread Raw
Responses Re: column names with - and (
List pgsql-sql
<div dir="ltr">Hi All,<br />When I am fetching the data from a table,<br />I am giving the column names with - and (
and) like IL-a, IL-a(p30) etc..<br /><br />select x1 as IL-a, x2 as IL-a(p30) from abc<br /><br />But I am getting <br
/><br/>ERROR:  syntax error at or near "-" and also t "(" , ")"<br /><br />Can anyone help me to fix this?<br /><br
/>Thankyou,<br />Maria<br /></div> 

pgsql-sql by date:

Previous
From: Emi Lu
Date:
Subject: Re: Query prepared plan
Next
From: "Oliveiros Cristina"
Date:
Subject: Re: column names with - and (