classIntoVariables
final class IntoVariables
implements IntoDestination
uses Snapshot
Public API: explicitly declared with
@visibility public.INTO var, ...: the user variables and stored program variables that receive the columns of the one result row.
The query that holds the destination derives the targets and reports a count that differs from the number of columns. Source: https://dev.mysql.com/doc/refman/8.4/en/select-into.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a, b FROM t INTO @x, y');
[$query->statement->into->targets[0]->name->value, $query->statement->into->targets[1]->name->value] // => ['x', 'y']Properties§
public non-empty-list<UserVariable|ProgramVariable> $targetsMethods§
public function __construct(list<Scalar> $targets)Parameters
$targets | list<Scalar> | The targets in written order, each a user or stored program variable; at least one |
Calls 3
- static-call Check::listOf() line 41
- class-const Scalar::class() line 41
- static-call Check::input() line 42
public function render(Output $out): voidTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.