Click here to Skip to main content
16,004,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have write query
SQL
DECLARE @set NVARCHAR(50)
set @set='a,b,c'
select FIND(@set)

I want to find the charcter by position
if i send FIND(2) then want to dsiplay b as per my query ..
Is there any function in sql
Posted

1 solution

You may use the substring function. Many database provide it (albeit with different names, for instance MS Transact-SQL has SUBSTRING[^], while Oracle provides SUBSTR[^]).
 
Share this answer
 
Comments
Wendelius 11-May-12 18:14pm    
Exactly!
CPallini 18-May-12 3:21am    
Thank you.
Maciej Los 17-May-12 17:24pm    
Good answer, 5!
CPallini 18-May-12 3:21am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900