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 |
|
j0shua
Starting Member
40 Posts |
Posted - 2008-11-07 : 05:16:41
|
Hi, Is there an sql statement to truncate a string then get only the first four characters? Thank you  |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-07 : 05:19:07
|
| yup. use LEFT(col,4) |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-11-07 : 05:19:31
|
| select left('testing',4)MadhivananFailing to plan is Planning to fail |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-11-07 : 05:19:52
|
MadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-07 : 05:27:36
|
quote: Originally posted by madhivanan
MadhivananFailing to plan is Planning to fail
24 secs |
 |
|
|
j0shua
Starting Member
40 Posts |
Posted - 2008-11-07 : 05:46:24
|
| Thank you for the information :) i appreciated it :) |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-07 : 05:53:12
|
| cheers :) |
 |
|
|
|
|
|