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 |
|
hueby
Posting Yak Master
127 Posts |
Posted - 2005-01-28 : 12:04:00
|
| Hi all,Is it possible to run a query, or something, to select just the first two characters of a field??I have a varchar field with 6 characters, but i just want the first 2. |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-01-28 : 12:06:53
|
| select left(fld,2)from tbl==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
hueby
Posting Yak Master
127 Posts |
Posted - 2005-01-28 : 12:09:00
|
| Perfect! Thank you! |
 |
|
|
|
|
|