29 lines
1023 B
SQL
29 lines
1023 B
SQL
ALTER TABLE `vn2008`.`Paises`
|
|
ADD COLUMN `ibanLength` TINYINT(4) NULL DEFAULT NULL AFTER `isUeeMember`;
|
|
|
|
CREATE
|
|
OR REPLACE ALGORITHM = UNDEFINED
|
|
DEFINER = `root`@`%`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`country` AS
|
|
SELECT
|
|
`p`.`Id` AS `id`,
|
|
`p`.`Pais` AS `country`,
|
|
`p`.`CEE` AS `CEE`,
|
|
`p`.`isUeeMember` AS `isUeeMember`,
|
|
`p`.`Codigo` AS `code`,
|
|
`p`.`Id_Moneda` AS `currencyFk`,
|
|
`p`.`Id_Paisreal` AS `politicalCountryFk`,
|
|
`p`.`geoFk` AS `geoFk`,
|
|
`p`.`ibanLength` AS `ibanLength`
|
|
FROM
|
|
`vn2008`.`Paises` `p`;
|
|
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=22 WHERE `Id`=1;
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=25 WHERE `Id`=2;
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=20 WHERE `Id`=3;
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=22 WHERE `Id`=4;
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=16 WHERE `Id`=5;
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=25 WHERE `Id`=19;
|
|
UPDATE `vn2008`.`Paises` SET `ibanLength`=22 WHERE `Id`=30;
|