如何执行MySQL'创建视图'在Zend Framework 1中?

时间:2016-12-02 07:27:59

标签: zend-db

我试过了,是不是这样做?

$sql_group = $db->query("CREATE VIEW `branchfromgroup` AS (SELECT `tbl_group`.`Sno` FROM `tbl_group` LEFT JOIN `tbl_branch` ON `tbl_group`.`branchId` = `tbl_branch`.`Sno` WHERE (`tbl_branch`.`Sno` = '4'))");

0 个答案:

没有答案