14 lines
334 B
MySQL
14 lines
334 B
MySQL
|
USE `vn`;
|
||
|
CREATE
|
||
|
OR REPLACE ALGORITHM = UNDEFINED
|
||
|
DEFINER = `root`@`%`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `department` AS
|
||
|
SELECT
|
||
|
`b`.`department_id` AS `id`,
|
||
|
`b`.`name` AS `name`,
|
||
|
`b`.`father_id` AS `fatherFk`,
|
||
|
`b`.`production` AS `isProduction`
|
||
|
FROM
|
||
|
`vn2008`.`department` `b`;
|