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 |
|
psfaro
Starting Member
49 Posts |
Posted - 2010-06-18 : 20:37:37
|
| HiIn SQL2008 Developmenttable "Mytable" column1 varchar(2) column2 varchar(10)Query 1select * from mytable where column2=1//Returns error because column2 is Varchar not numericQuery 2select * from mytable where column1='14' and column2=1//Returns all rows with column1=14 and column2=1How is possible? column2 is varchar and the query is made with numericRegards pedro faro |
|
|
hambergler
Starting Member
9 Posts |
|
|
psfaro
Starting Member
49 Posts |
Posted - 2010-06-19 : 20:13:47
|
| Hi I think the situation is the same in SQL2005I know that i have to put the quotas.Simply , i don´t understand why q1 gives error and q2 not.Regards Pedro |
 |
|
|
|
|
|