PHP Class 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 ...
Exibir arquivo
Open project: phpmyadmin/sql-parser
Public Properties
Property |
Type |
Description |
|
$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 Methods
Method Details
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. |
return |
void |
|
Property Details
$OPTIONS public_oe static_oe property
Options for REPLACE statements and their slot ID.
public static array $OPTIONS |
return |
array |
|
Tables used as target for this statement.
public IntoKeyword,SqlParser\Components $into |
return |
SqlParser\Components\IntoKeyword |
|
$select public_oe property
If SELECT clause is present
holds the SelectStatement
public SelectStatement,SqlParser\Statements $select |
return |
SelectStatement |
|
If SET clause is present
holds the SetOperation
public SetOperation[],SqlParser\Components $set |
return |
SqlParser\Components\SetOperation[] |
|
$values public_oe property
public Array2d,SqlParser\Components $values |
return |
SqlParser\Components\Array2d |
|