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 |
|
cable_si
Starting Member
20 Posts |
Posted - 2008-09-12 : 09:22:04
|
| HiI have a text field in a table in my databaseat the end of the field is a full stopeg "this is a bit of text."i want to remove the full stops at the end from all recordsCan anyone help me with the SQL to do this ?thanksSimon |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-09-12 : 09:28:31
|
| select left(col,len(col)-1) as col from your_tableMadhivananFailing to plan is Planning to fail |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-09-12 : 09:29:20
|
[code]update tset col = left(col, len(col) - 1)from yourtablewhere right(col, 1) = '.'[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
cable_si
Starting Member
20 Posts |
Posted - 2008-09-12 : 09:49:18
|
excellent, thanks |
 |
|
|
|
|
|