Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random 10 Char Values
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01017716
Message ID:
01017727
Vues:
22
Hi,

> how to generate random 10 character values just like sys(2015) of Foxpro.

The following T-SQL expression returns a string that looks like SYS(2015) string:
'_'+LEFT(REPLACE(NEWID(),'-',''),9)
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform