Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Andrey Gershun edited this pageMay 27, 2015 ·4 revisions

DECLARE

Syntax:

    DECLARE variable type [= expression]

AlaSQL allows to create local variables with@ prefix:

varres=alasql('DECLARE @one char(3) = "abcdef"; SELECT VALUE @one')[1];// returns "abcdef"

Try this example injsFiddle.

Extended syntax

You can assign value immediatly to the declared variable:

     DECLARE @var1 type1= expr1, @var2 type2;

See also:SET

© 2014-2026,Andrey Gershun &Mathias Rangel Wulff

Please help improve the documentation by opening a PR on thewiki repo

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp