Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql server 2000 i'm looking for a function that returns 2

Status
Not open for further replies.

tempo1

Programmer
Feb 20, 2007
118
0
0
a number showing the position of a certain character.
Hi everyone,
In my select query i want to display the position of the character '-'.
My query goes like:
Code:
select position(phone,'-')
to show where the '-' of
each phone number i situated.
can anyone tell me what i should replace
with ?
Thanks a lot
 
select charindex('e', 'abcdefgh')

But, you should open a book or the BOL before ask a trivial question like this... RTFM, said another :).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top