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 ...
Inheritance: extends SqlParser\Statement
Mostrar archivo 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 Description
build ( ) : string
parse ( Parser $parser, TokensList $list ) : void

Method Details

build() public method

public build ( ) : string
return string

parse() public method

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

$into public_oe property

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

$set public_oe property

If SET clause is present holds the SetOperation
public SetOperation[],SqlParser\Components $set
return SqlParser\Components\SetOperation[]

$values public_oe property

Values to be replaced.
public Array2d,SqlParser\Components $values
return SqlParser\Components\Array2d