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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-07-15 : 08:29:41
|
| Victoria writes "Hi, Who can I replace some characters of a field during the search? I want to use the replace command (prod_title=replace(prod_title,'Ü','á') )in the sql statement but I can’t find a way to do it? This is my sql… SELECT * FROM Products WHERE prod_title like '%"&SearchTXT&"%' " |
|
|
dsdeming
479 Posts |
Posted - 2003-07-15 : 08:45:10
|
| Do you want to use replace in the SELECT clause or the WHERE clause? Are you getting any errors? Here's an example from the Northwind database:SELECT ProductName, newProductName = replace(ProductName,'ö','á')FROM Products WHERE ProductName like '%Lakka%'Dennis |
 |
|
|
|
|
|