Bonjour,
j'ai un problème de format du montant :
1- si j'exécute l'ordre select sur sql-server le montant est correct 3136,443
2- si j'exécute l'ordre select avec la commande bcp le montant est 3136.4430000000002
comment résoudre ce problème sachant que montant est float dans SQL ?
MERCI D'AVANCE
Détails :
1 2 3 4
| select t.nom,t.montant,t.modepaie
from echeance t
where maj = 0
and contrat = 67 |
AQUALUX 3136,443 TRAITE
AQUALUX 1428,126 TRAITE
AQUALUX 1131,957 TRAITE
bcp "select t.nom,t.montant,t.modepaie from datafactor..echeance t where maj = 0 and contrat = 67" queryout c:\echeancier.txt -c -t ; -T
AQUALUX ;3136.4430000000002 ;TRAITE
AQUALUX ;1428.126 ;TRAITE
AQUALUX ;1131.9570000000001 ;TRAITE
Partager