Llistant el codi, municipi i codi de la ofisam:
mysql> select CODIGO, MUNICIPIO, OFISAM from ayuntamientos;
I ara actualitzant la taula d'ajuntaments i canviant algunes ofisams d'alguns municipis:
mysql> UPDATE ayuntamientos SET ofisam='OF6' WHERE CODIGO='038';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql>
Canviant el nom del poble per estar mal escrit. On diu Pobla de Benifasa hauria de dir 'Pobla de Benifassà':
mysql> UPDATE asist_admva SET ayto='POBLA DE BENIFASSA' WHERE ayto LIKE '%POBLA DE%' and ano='2009';
Envia un nou comentari