11 lines
327 B
SQL
11 lines
327 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `hedera`.`myClient`
|
|
AS SELECT `c`.`id` AS `id`,
|
|
`c`.`isToBeMailed` AS `isToBeMailed`,
|
|
`c`.`defaultAddressFk` AS `defaultAddressFk`,
|
|
`c`.`credit` AS `credit`
|
|
FROM `vn`.`client` `c`
|
|
WHERE `c`.`id` = `account`.`myUser_getId`()
|
|
WITH CASCADED CHECK OPTION
|