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

14 lines
301 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`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 ;