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