salix/db/routines/vn/procedures/ediTables_Update.sql

14 lines
297 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ediTables_Update`()
BEGIN
INSERT IGNORE INTO vn.genus(name)
SELECT latin_genus_name
FROM edi.genus ;
INSERT IGNORE INTO vn.specie(name)
SELECT LCASE(latin_species_name)
FROM edi.specie ;
END$$
DELIMITER ;