15 lines
399 B
MySQL
15 lines
399 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `account`.`myUser`
|
||
|
AS SELECT `u`.`id` AS `id`,
|
||
|
`u`.`name` AS `name`,
|
||
|
`u`.`active` AS `active`,
|
||
|
`u`.`email` AS `email`,
|
||
|
`u`.`nickname` AS `nickname`,
|
||
|
`u`.`lang` AS `lang`,
|
||
|
`u`.`role` AS `role`,
|
||
|
`u`.`recoverPass` AS `recoverPass`
|
||
|
FROM `account`.`user` `u`
|
||
|
WHERE `u`.`name` = `myUser_getName`()
|
||
|
WITH CASCADED CHECK OPTION
|