PHP Класс SqlParser\Statements\ReplaceStatement
REPLACE [LOW_PRIORITY | DELAYED]
[INTO] tbl_name [(col_name,...)]
{VALUES | VALUE} ({expr | DEFAULT},...),(...),...
or
REPLACE [LOW_PRIORITY | DELAYED]
[INTO] tbl_name
SET col_name={expr | DEFAULT}, ...
or
REPLACE [LOW_PRIORITY | DELAYED]
[INTO] tbl_name
[PARTITION (partition_name,...)]
[(col_name,...)]
SELECT ...
Показать файл
Открыть проект
Открытые свойства
Свойство |
Тип |
Описание |
|
$OPTIONS |
array |
Options for REPLACE statements and their slot ID. |
|
$into |
SqlParser\Components\IntoKeyword |
Tables used as target for this statement. |
|
$select |
SelectStatement |
If SELECT clause is present
holds the SelectStatement |
|
$set |
SqlParser\Components\SetOperation[] |
If SET clause is present
holds the SetOperation |
|
$values |
SqlParser\Components\Array2d |
Values to be replaced. |
|
Открытые методы
Описание методов
public parse ( Parser $parser, TokensList $list ) : void |
$parser |
SqlParser\Parser |
The instance that requests parsing. |
$list |
SqlParser\TokensList |
The list of tokens to be parsed. |
Результат |
void |
|
Описание свойств
$OPTIONS публичное статическое свойство
Options for REPLACE statements and their slot ID.
public static array $OPTIONS |
Результат |
array |
|
Tables used as target for this statement.
public IntoKeyword,SqlParser\Components $into |
Результат |
SqlParser\Components\IntoKeyword |
|
$select публичное свойство
If SELECT clause is present
holds the SelectStatement
public SelectStatement,SqlParser\Statements $select |
Результат |
SelectStatement |
|
If SET clause is present
holds the SetOperation
public SetOperation[],SqlParser\Components $set |
Результат |
SqlParser\Components\SetOperation[] |
|
$values публичное свойство
public Array2d,SqlParser\Components $values |
Результат |
SqlParser\Components\Array2d |
|