💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 函数原型 ~~~ public function table($mixTable, $mixCols = '*'); ~~~ # 指定数据表 ~~~ # SELECT `posts`.* FROM `posts` database::table('posts')->getAll(); # SELECT `posts`.* FROM `mydb`.`posts` database::table('mydb.posts')->getAll(); # SELECT `p`.* FROM `mydb`.`posts` `p` database::table(['p' => 'mydb.posts'])->getAll(); ~~~ # 指定字段 ~~~ # SELECT `posts`.`title`,`posts`.`body` FROM `posts` database::table('posts','title,body')->getAll(); # SELECT `posts`.`title` AS `t`,`posts`.`name`,`posts`.`remark`,`posts`.`value` FROM `mydb`.`posts` database::table('mydb.posts',['t'=> 'title','name','remark,value'])->getAll(); ~~~