Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp transform() in SQL Server
Message
De
25/06/2005 10:57:11
 
 
À
25/06/2005 06:16:18
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01026500
Message ID:
01026518
Vues:
13
Try something like this:
DECLARE @nVar decimal (14,2)

SET @nVar = 9898989

SELECT '$' + CONVERT(VARCHAR(32),CONVERT(Money,@nVar),1)    -- show decimals 

SELECT '$' + REPLACE(CONVERT(VARCHAR(32),CONVERT(Money,@nVar),1),'.00','')   -- suppress any ".00"
Let me know if that helps...
Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform