RE: SQL Replace Function for Strings
From: Michael (anonymous_at_discussions.microsoft.com)
Date: 06/06/04
- Next message: Hari: "Re: how do i create a view within a procedure that uses a variable defined in the procedure"
- Previous message: Michael: "SQL Replace Function for Strings"
- In reply to: Michael: "SQL Replace Function for Strings"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 6 Jun 2004 03:11:02 -0700
Hi
I found the solution already.
The solution is to find the position of the colon and than extract the string using this value from all values.
For SQL: select KSName, SUBSTRING(KSName, PATINDEX('%:%',KSName)+1,1000) from job
In Access:SELECT dbo_Job.KSName, Mid( dbo_Job.KSName, InStr(dbo_Job.KSName,':')+1 ,1000) AS Expr1
FROM dbo_Job;
- Next message: Hari: "Re: how do i create a view within a procedure that uses a variable defined in the procedure"
- Previous message: Michael: "SQL Replace Function for Strings"
- In reply to: Michael: "SQL Replace Function for Strings"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|