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 |
|
oahu9872
Posting Yak Master
112 Posts |
Posted - 2006-11-03 : 19:39:31
|
| I'm trying to write a query that will search for a specific character string within a field. Is this possible? Here is what I tried. If you see anything wrong or know of a better way, let me know.SELECT * FROM MYTABLEWHERE MYCOLUMN LIKE 'ABCDEF' Thanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-11-03 : 19:47:39
|
| You need to use %SELECT * FROM MYTABLEWHERE MYCOLUMN LIKE 'ABCDEF%' SELECT * FROM MYTABLEWHERE MYCOLUMN LIKE '%ABCDEF%' SELECT * FROM MYTABLEWHERE MYCOLUMN LIKE '%ABCDEF' It depends on what you are searching forMadhivananFailing to plan is Planning to fail |
 |
|
|
oahu9872
Posting Yak Master
112 Posts |
Posted - 2006-11-03 : 19:50:03
|
| I can't believe i missed that. thanks for the help |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-11-03 : 19:56:02
|
quote: Originally posted by oahu9872 I can't believe i missed that. thanks for the help
It happens sometimes MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|