About 1,170 results
Open links in new tab
  1. 28. Manage variables with SQL Workbench/J

    There are two possibilities to define a variable. The short syntax is: WbVarDef variable=value. The long syntax allows to define variables in a different way: The name of the variable to be defined. The value of the variable. Read the variable definitions from the specified file. Read the contents of the variable from a the specified file.

  2. sql - Parameterize MySQL workbench statements: How to define variables

    I'm trying to parameterize a set of frequently used queries in my workbench. This works: select * from providers where id='112233'; This WbVarDef var1=112233; select * from providers where id='...

  3. 17. Variable substitution in SQL statements

    You can define variables within SQL Workbench/J that can be referenced in your SQL statements. This is done through the internal command WbVarDef . WbVarDef myvar=42 defines a variable with the name myvar and the value 42 .

  4. Declare variable syntax invalid in MySQL Workbench?

    I am trying to create and set a variable: DECLARE myId INT; SET myId = 5; However, I am getting invalid syntax complaint in MySQL Workbench: SQL syntax error near 'DECLARE myId INT;' I have trie...

  5. MySQL :: MySQL Workbench Manual :: 6.4 Status and System Variables

    Custom Variable Grouping. The status and system variables are each categorized by groups (such as InnoDB or Logging), and you may also create your own custom groups. Right-click a variable, choose the custom group (or create a new one), and then add the variable to the aforementioned group.

  6. sql - Declaring and using MySQL varchar variables - Stack Overflow

    Declare @variable type(size); Set @variable = 'String' or Int ; Example: Declare @id int; set @id = 10; Declare @str char(50); set @str='Hello' ;

  7. Use Variables in MySQL Workbench - CodeWithGagan

    In MySQL Workbench, you can create and use variables to store and manipulate data within your SQL queries. Variables can be helpful for storing temporary values, making your queries more dynamic, and simplifying complex queries. Here's how you can create and use variables in MySQL Workbench:

  8. MySQL Variables - MySQL Tutorial

    Summary: in this tutorial, you will learn how to use MySQL variables in SQL statements. Sometimes, you want to pass a value from an SQL statement to other SQL statements within the same session. To do this, you store the value in a user-defined variable in the first statement and use it in the subsequent statements.

  9. 28. Manage variables with SQL Workbench/J

    There are two possibilities to define a variable. The short syntax is: WbVarDef variable=value. The long syntax allows to define variables in a different way: The name of the variable to be defined. The value of the variable. Read the variable definitions from the specified file. Read the contents of the variable from a the specified file.

  10. 11.4 User-Defined Variables - MySQL

    You can store a value in a user-defined variable in one statement and refer to it later in another statement. This enables you to pass values from one statement to another. User variables are written as @var_name, where the variable name var_name consists of alphanumeric characters, ., …

Refresh