- DECLARE @PW_MPID NVARCHAR(max)
- set @PW_MPID='1555|2555|35|'
- DECLARE @PW_MPIDPostion Varchar(max) = CHARINDEX('|',@PW_MPID)
- rint @PW_MPIDPostion
- DECLARE @TempPW_MPID Varchar(max)
- WHILE(@PW_MPIDPostion > 0)
- BEGIN
- SET @TempPW_MPID = SUBSTRING(@PW_MPID ,1,@PW_MPIDPostion-1)
- print @TempPW_MPID
- SET @PW_MPID =SUBSTRING(@PW_MPID,@PW_MPIDPostion +1,LEN(@PW_MPID))
- print @PW_MPID
- SET @PW_MPIDPostion = CHARINDEX('|',@PW_MPID)
- print @PW_MPIDPostion
- END
Wednesday, 31 January 2018
SQL CharIndex Example
Subscribe to:
Post Comments (Atom)
Upload valid file in C#
protected bool CheckFileExtandLength(HttpPostedFile HtmlDocFile) { try { Dictionary<string, byte[]...
-
Setting Header Programatically You can also set the cache headers programmatically. This can be useful for generated content and allows m...
-
CREATE TABLE dbo.M_Bank ( ID INT IDENTITY NOT NULL, MB_NAME NVARCHAR (50), MB_SNAME NVARCHAR (20), MB_ADDUSER ...
-
SELECT distinct(volume_mount_point), total_bytes/1048576 as Size_in_MB, total_bytes/1048576/1024 as Size_in_GB, available_bytes/1048576 ...
No comments:
Post a Comment