改名
This commit is contained in:
@@ -76,6 +76,18 @@ trait QueryTrait
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $column
|
||||||
|
* @param string $value
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function locate(string $column, string $value): static
|
||||||
|
{
|
||||||
|
$this->where[] = 'LOCATE(' . $column . ',\'' . addslashes($value) . '\')';
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $column
|
* @param $column
|
||||||
* @return $this
|
* @return $this
|
||||||
|
|||||||
Reference in New Issue
Block a user