Welcome to Sign in | Help
in Search

concatenare tabele

Last post 10-01-2007, 1:17 PM by Diana. 3 replies.
Sort Posts: Previous Next
  •  10-01-2007, 12:47 PM 2808

    concatenare tabele

    salut!

    am aprox 30 de tabele cu aceeasi structura. imi puteti spune, va rog, cum pot sa concatenez aceste tabele intr-unul singur?

    sa am un tabel cu inregistrarile din toate aceste tabele.

    multumesc.

  •  10-01-2007, 1:08 PM 2809 in reply to 2808

    Re: concatenare tabele

    Pai cu insert into...
    INSERT Table1 SELECT * FROM Table2
    INSERT Table1 SELECT * FROM Table3
    Detalii despre INSERT aici.

  •  10-01-2007, 1:13 PM 2810 in reply to 2809

    Re: concatenare tabele

    si fac treaba asta de 30 de ori?

    cum ar fi comanda exact?

     nu se poate ceva mai automat, avand in vedere ca si tabelele au nume ce respecta un tipar... tabel_01, tabel_02,....

     

  •  10-01-2007, 1:17 PM 2811 in reply to 2810

    Re: concatenare tabele

    Incearca sa folosesti operatorul UNION. Tabelele trebuie sa aibe aceeasi structura -acelasi numar de coloane, cu tipuri de date compatibile.
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems