SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
DECLARE @CliEndCorresp VARBINARY(128); SET @CliEndCorresp = 'WILLY-BRANDT-PLATZ 2, 81829.'; LTRIM(SUBSTRING( @CliEndCorresp, CHARINDEX(',', @CliEndCorresp) + 1, CASE WHEN CHARINDEX('-', @CliEndCorresp) > 0 THEN CHARINDEX('-', @CliEndCorresp) - CHARINDEX(',', @CliEndCorresp) - 1 ELSE LEN(@CliEndCorresp) END

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear