|
-
Dec 2nd, 1999, 01:35 PM
#1
Thread Starter
Addicted Member
Hi anyone,
I know this one isn't a VB question, but
I need the solution for my VB project, hope
anyone can help me.
How to create a function in MS-SQL6.5 with a
return value ?
I want to create a function which can replace
char(s) in a string with another char.
example,
select xReplace('Hello','l','x') -- will return Hexxo
select xReplace('Bye','y','o') -- will return Boe
I know the logic in replacing, but I don't know
how to create a function, not a stored procedure.
Is there any built-in function for this ?
Thank you
[This message has been edited by Keiko (edited 12-03-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|