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.
| Author |
Topic |
|
urmas80
Starting Member
20 Posts |
Posted - 2012-07-06 : 02:45:12
|
| Hi again,I am using conditional select with a following synatx, but when i am writing the condition i got this error:SELECT * FROM CustomersWHERE (["Customers ID"] = "1111")Invalid column name '1111'.In the customers table the format of the data is as written in the condition ["1111"], with the ". |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2012-07-06 : 03:47:10
|
use single quotesSELECT * FROM CustomersWHERE ["Customers ID"] = '"1111"'But I must say that is a mess! No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
urmas80
Starting Member
20 Posts |
Posted - 2012-07-06 : 06:02:39
|
yes you right, that's a mess! and thank you for your help!! (i always forget quotes ) |
 |
|
|
|
|
|