💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
##### 创建视图 ~~~ $Sql -> view($name,$select); ~~~ ##### 参数说明 > $name [必选] 视图名称 > $select [必选] 查询语句 > 1.echo 输出类型(0:状态布尔值,1:打印语句) ##### 回调信息 succeed 执行状态[0:失败,1:成功] msg 提示信息 ##### 实例 ~~~ $select = []; $select[] = " select `sbh_sbh_manage`.`account` AS `account`"; $select[] = " from `sbh_sbh_manage`"; $select[] = "union all"; $select[] = " select `sbh_user`.`account` AS `account`"; $select[] = "from `sbh_user`"; $select = implode(' ', $select); $back = $Sql->view("视图名",$select); ~~~