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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 middle of a field

Author  Topic 

lane0618
Posting Yak Master

134 Posts

Posted - 2002-12-18 : 12:57:00
Is it possible to select the middle of a field:

example:
CC123456-WED

I want to select only
123456

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-12-18 : 13:04:44
SELECT SubString('CC123456-WED', 3,6)

Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2002-12-18 : 13:04:56
look at substring

==========================================
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.
Go to Top of Page
   

- Advertisement -