hace un tiempo tenia una BD con una vista creada, tuve que sacarla en back up para instalarla en otro servidor, pero cuando restauré... solo me creó las tablas y la vista generó un error.
El codigo es el siguiente
Cita:
Y el error que me bota es este:CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_dir_contactos` AS select `c`.`id` AS `id`,`c`.`nombres` AS `nombres`,`c`.`apellidos` AS `apellidos`,`o`.`operador` AS `operador`,`c`.`numero` AS `numero`,`c`.`email` AS `email`,`ca`.`nombre` AS `nombre` from ((`dir_contactos` `c` join `dir_operador` `o`) join `dir_categorias` `ca`) where ((`c`.`operador` = `o`.`id`) and (`c`.`categoria` = `ca`.`id`));
Cita:
MySQL ha dicho: Documentación
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_dir_' at line 1
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_dir_' at line 1