use familias; insert into li_formacion (id,nombre) values (7,'Legislacion laboral, extranjería'),(8,'Medio ambiente'),(9,'Otros'),(10,'Perspectiva de género'),(11,'Gestión de la economia doméstica'); alter table li_formacion add id_i3l char(2); update li_formacion set id_i3l='OT' where id=1; update li_formacion set id_i3l='OT' where id=2; update li_formacion set id_i3l='AI' where id=3; update li_formacion set id_i3l='AD' where id=4; update li_formacion set id_i3l='HS' where id=5; update li_formacion set id_i3l='OT' where id=6; update li_formacion set id_i3l='LE' where id=7; update li_formacion set id_i3l='MD' where id=8; update li_formacion set id_i3l='OT' where id=9; update li_formacion set id_i3l='PG' where id=10; update li_formacion set id_i3l='OT' where id=11; /* Incluyo los campos de derivacion en la tabla de formacion */ alter table formacion add `derivacion` char(1) DEFAULT 'N', add `der_entidad` char(8) DEFAULT NULL, add `der_desc` varchar(50) DEFAULT NULL, add `der_mot` varchar(100) DEFAULT NULL, add `proyecto` smallint(6) DEFAULT NULL;