Welcome to Sign in | Help

Re: Ajutor la concepere procedura stocata...

  •  01-26-2009, 12:45 AM

    Re: Ajutor la concepere procedura stocata...

    pai , la modul simplist:
    1.
    fara cursoare
    insert into  tAbela(cimp1, cimp2, etc)  select (cimp1, cimp2, etc) from clienti where <conditiii>
    Apoi vezi daca where il poti optimiza cu indecsi
    La fel, insert into operatii(valori) select id from clienti where apa =true )

    2. Pentru siguranta  - begin transaction / commit /rollback

    Ignat Andrei
    http://serviciipeweb.ro/iafblog
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems