11 lines
274 B
MySQL
11 lines
274 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `account`.`accountDovecot`
|
||
|
AS SELECT `u`.`name` AS `name`,
|
||
|
`u`.`password` AS `password`
|
||
|
FROM (
|
||
|
`account`.`user` `u`
|
||
|
JOIN `account`.`account` `a` ON(`a`.`id` = `u`.`id`)
|
||
|
)
|
||
|
WHERE `u`.`active` <> 0
|