Welcome to Sign in | Help

Re: Concatenare?

  •  01-30-2008, 1:59 PM

    Re: Concatenare?

    am dat! exact la linia nou introdusa este eroarea...la primul egal,  fara aceasta 'selectie' noua, procedura merge fara probleme...

    Uite, ceva de genul asta este (prescurtat):

    DECLARE @chitante NVARCHAR(1024)

    SELECT dbo.ANTET_FACTURI.NRDOC, dbo.ANTET_FACTURI.DATA,

    (SELECT @chitante = COALESCE(@chitante + ',', '') + ltrim(rtrim((cast(nrchit as char(10)))))

    FROM chitantecl where chitantecl.id_antet_factura=antet_facturi.id)

    FROM dbo.ANTET_FACTURI INNER JOIN

    dbo.CHITANTECL ON dbo.ANTET_FACTURI.ID = dbo.CHITANTECL.ID_ANTET_FACTURA

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems