Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stripping Leading Zeros from Varchar during select
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Stripping Leading Zeros from Varchar during select
Divers
Thread ID:
00721526
Message ID:
00721526
Vues:
37
I have a table that was and is populated from another system. One of the id fields is a 15 character field, that gets put into our system with leading zero's. So far, only the right 6 digits are populated, the rest are all zero's. My question is, is there a way during a select statement to remove the leading chars, maybe using a UDF? We display this field in many places during our application both on screen and in reports. Thanks for any suggestions and ideas.

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform