salix/db/routines/account/views/accountDovecot.sql

11 lines
278 B
MySQL
Raw Normal View History

CREATE OR REPLACE DEFINER=`vn-admin`@`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