Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 SPACE IN FIELD NAME

Author  Topic 

cutepraba
Yak Posting Veteran

53 Posts

Posted - 2007-09-29 : 09:55:00
I have table "tbl_event_log" that contain "Event Category" field name(2nd column)

Now please tell how to select that field in sql

when i am trying to connect like follwing it shows error
"select count(*) from tbl_event_log where Event Category=3"

I think there is a space in the "Event Category" field how to overcum this problem???? - i cannot rename that "Event Category" field because it is a third party DB.


____________
Praba

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-09-29 : 09:56:39
[code]select count(*) from tbl_event_log where [Event Category]=3[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -