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 |
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2009-04-29 : 01:25:16
|
hi i have select a record use to comapir a string use logical operator(=>). in string their is no space the record is correct but in string their space or numeric value their is not correct stringsupposein table tab1 isname addressa abcb abc 2 plot 5c xyz 3 plot 7d abc e vxcvcvf gfg fgdfgselect name from tab1 where address =>'abc'the result is correctbut i have select following queryselect name from tab1 where address =>'abc 2 plot 5'their is not correct resultthanks in advance  |
|
|
ashishashish
Constraint Violating Yak Guru
408 Posts |
Posted - 2009-04-29 : 01:36:51
|
| Why u use this =>and what your expected result by this query ,,,select name from tab1 where address =>'abc 2 plot 5'their is not correct resultYou can also write this asselect name from urtable where address like '%abc 2 plot 5%'Or just explain what you want exactly...and why u use this "=>"iF theRe iS a wAy iN tHen theRe iS a wAy oUt.. |
 |
|
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2009-04-29 : 02:00:20
|
| thanks to replayselect name from tab1 where address >='abc 2 plot 5' i have select records to compair where conditionas well as select record to after where condition recordsit is wrong only when in string numeric value |
 |
|
|
|
|
|