Ignore:
Timestamp:
Jan 24, 2023, 9:01:34 PM (16 months ago)
Author:
roby
Message:
  • ADMIN
  • Continua perfezionamento della funzione di aggiornamento
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/aggiornadb.php

    r385 r386  
    174174{
    175175        $sql="ALTER TABLE `".$prefix."_ele_lista` ADD `num_gruppo` INT(2) UNSIGNED NOT NULL AFTER `id_gruppo`";
    176         $sql2="update `".$prefix."_ele_lista` as t1 set t1.num_gruppo=(select t2.num_gruppo from `".$prefix."_ele_gruppo` as t2 where t2.id_gruppo=t1.id_gruppo) where t1.num_gruppo=0";
     176        $sql2="update `".$prefix."_ele_lista` as t1 set t1.num_gruppo=(select t2.num_gruppo from `".$prefix."_ele_gruppo` as t2 where t2.id_gruppo=t1.id_gruppo) where t1.num_gruppo=0 and (select t2.num_gruppo from `soraldo_ele_gruppo` as t2 where t2.id_gruppo=t1.id_gruppo) is not null";
    177177        $ret=aggiorna($sql,$dbi,$sql2,$num);
    178178}else{
Note: See TracChangeset for help on using the changeset viewer.