USE `vn`; ALTER TABLE `vn2008`.`escritos` ADD COLUMN `hasCompany` VARCHAR(45) NOT NULL DEFAULT 0 AFTER `visible`; CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `sample` AS SELECT `e`.`id` AS `id`, `e`.`abrev` AS `code`, `e`.`descripcion` AS `description`, `e`.`visible` AS `isVisible`, `e`.`hasCompany` AS `hasCompany` FROM `vn2008`.`escritos` `e`;