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

11 lines
274 B
MySQL
Raw Permalink Normal View History

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