bonjour,
je suis d�butant en sql et je travaille sur une base stock�esur un serveur UNIX avec SYBASE ( SQL SERVER)
je lance � partir du pc d�port� la commande ( exemple) suivante :
"isql -Uuser -Ppassword < toto.sql >toto.txt"
le fichier toto.sql :
select nomag,nooperation, notecterm, datetick, notick, mt,mtini,nofoyer, nocli from PMEMIS where nofoyer=1234567890
go
et je r�cupere toto.txt :
nomag nooperation notecterm datetick notick mt
mtini nofoyer nocli
----- ----------- --------- -------------------------- ------ -----------
----------- ---------- -------------
1 406 12 jan 16 2004 1:23PM 20 12
NULL 0217129234 2902171292346
1 406 18 jan 20 2004 9:55AM 36 88
NULL 0217129234 2902171292346
1 406 16 jan 23 2004 2:05PM 49 138
NULL 0217129234 2902171292346
1 410 10 jan 27 2004 9:37AM 11 289
NULL 0217129234 2902171292346
jusque l� tout va bien si ce n'est que j'aimerai que les informations me soient retourn�es sur une ligne par enregistrement au lieu de deux, comme suit :
nomag nooperation notecterm datetick notick mt mtini nofoyer nocli
1 406 12 jan 16 2004 1:23PM 20 12 NULL 0217129234 2902171292346
Est ce possible ??
Si quelqu'un a une id�e MERCI D'AVANCE pour sa r�ponse.![]()
Partager