Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPLIT /Merge
Message
 
 
À
01/05/2005 21:52:33
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01010062
Message ID:
01010063
Vues:
37
This message has been marked as the solution to the initial question of the thread.
DECLARE @str varchar(16), @i int
SET @str = 'DEMO'
SET @i = 1
WHILE (@i <= DATALENGTH(@str))  BEGIN
	PRINT SUBSTRING(@str, @i,1)
	SET @i = @i + 1
END
> do we any split function ? let say split('DEMO') then it will return
> Row1 D
> Row2 E
> Row3 M
> Row4 O
>
> It tried it on PERL using Pattern Matching. Do we any equivalent in SQL or Foxpro? or any script that do.
> thank in advance
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform