SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Selectin strange column names
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

deathrone
Starting Member

Poland
15 Posts

Posted - 06/10/2013 :  03:30:46  Show Profile  Reply with Quote
The column in the table is called <nr_ref,id>
how to select it ?

trololoolo

webfred
Flowing Fount of Yak Knowledge

Germany
8760 Posts

Posted - 06/10/2013 :  03:32:43  Show Profile  Visit webfred's Homepage  Reply with Quote
put the column Name between [].

select [nr_ref,id] from table


Too old to Rock'n'Roll too young to die.
Go to Top of Page

bandi
Flowing Fount of Yak Knowledge

India
2202 Posts

Posted - 06/10/2013 :  03:33:52  Show Profile  Reply with Quote
SELECT [nr_ref,id]
FROM YouTable


--
Chandu
Go to Top of Page

deathrone
Starting Member

Poland
15 Posts

Posted - 06/10/2013 :  04:00:25  Show Profile  Reply with Quote
thx !

trololoolo
Go to Top of Page

deathrone
Starting Member

Poland
15 Posts

Posted - 06/10/2013 :  04:28:09  Show Profile  Reply with Quote
oh but, how to do it in ORACLE ?

trololoolo
Go to Top of Page

bandi
Flowing Fount of Yak Knowledge

India
2202 Posts

Posted - 06/10/2013 :  04:53:26  Show Profile  Reply with Quote
quote:
Originally posted by deathrone

oh but, how to do it in ORACLE ?

trololoolo


I think you can use double quotes in oracle
SELECT "nr_ref,id"
FROM TableName

--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000