11 lines
327 B
MySQL
11 lines
327 B
MySQL
|
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
|