mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
table方法支持字符串方式的子查询
This commit is contained in:
@@ -1050,7 +1050,10 @@ class Query
|
||||
public function table($table)
|
||||
{
|
||||
if (is_string($table)) {
|
||||
if (strpos($table, ',')) {
|
||||
if (strpos($table, ')')) {
|
||||
// 子查询
|
||||
$table = $table;
|
||||
} elseif (strpos($table, ',')) {
|
||||
$tables = explode(',', $table);
|
||||
$table = [];
|
||||
foreach ($tables as $item) {
|
||||
|
||||
Reference in New Issue
Block a user