..
Yes, the syntax for creating a variable is as follows:
SET @ varname = value;Here's an example:
Miavar SET @ = 1; SELECT @ miavar;It 'can also assign the value to the variable within a SELECT statement, an example follows:
Miavar SET @ = 1; SELECT @ miavar: miavar + 9 = @;This query will produce results in 10 as the new value of @ miavar.
| |
MS Access (Advanced)
Learn how to create and manage databases quickly and easily. Starting from 29 €. |
| |
MySQL (Course)
Management of open-source database. From 39 €. |
| |
SQL and Database (Course)
Create and manage relational databases. From 39 €. |