10 lines
310 B
MySQL
10 lines
310 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn2008`.`person_user_idtrabajador`
|
||
|
AS SELECT `t`.`Id_Trabajador` AS `Id_Trabajador`
|
||
|
FROM (
|
||
|
`vn2008`.`person_user` `p`
|
||
|
JOIN `vn2008`.`Trabajadores` `t` ON(`p`.`id` = `t`.`user_id`)
|
||
|
)
|
||
|
WHERE `t`.`user_id` = `account`.`myUser_getId`()
|