About 6,650 results
Open links in new tab
  1. Declare variable syntax invalid in MySQL Workbench?

    DELIMITER $$ CREATE PROCEDURE sp1 (x VARCHAR(5)) BEGIN DECLARE xname VARCHAR(5) DEFAULT 'bob'; DECLARE myId INT; SET myId = 5; SELECT …

  2. sql - How to declare a variable in MySQL? - Stack Overflow

    Nov 22, 2016 · You can initialize a variable using SET or SELECT statement: SET @start = 1, @finish = 10; or . SELECT @start := 1, @finish := 10; SELECT * FROM places WHERE place …

  3. Is it possible to create tables in MySQL Workbench using a SQL ...

    Aug 22, 2017 · I'm using MySQL Workbench to design a new schema and I have an exisiting create statement for a new table. Is it possible to use the create statement to create the table …

  4. Create a Table using MySQL Workbench - Quackit Tutorials

    You can use the MySQL Workbench GUI to create a table. You can also do it programmatically but here's how to do it via the GUI. In the following example, we create a new table called …

  5. SQL CREATE TABLE Statement - W3Schools

    The following example creates a table called "Persons" that contains five columns: PersonID, LastName, FirstName, Address, and City: The PersonID column is of type int and will hold an …

  6. MySQL INT Data Type - MySQL Tutorial

    First, create a new table named items with an integer column as the primary key: item_id INT AUTO_INCREMENT PRIMARY KEY, item_text VARCHAR (255) You can use either INT or …

  7. MySQL CREATE TABLE - GeeksforGeeks

    Jun 5, 2024 · MySQL Command Line Client allows you to create a table using the CREATE TABLE statement. This method requires specifying the table name, column names, and data …

  8. MySQL DECLARE Statement - Online Tutorials Library

    MySQL DECLARE Statement - Learn how to use the MySQL DECLARE statement to define variables in your SQL routines. Understand its syntax and practical examples for effective …

  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 …

  10. SQL workbench DECLARE variables : r/SQL - Reddit

    Mar 28, 2020 · Hello, I've been stuck for a moment now trying to handle variables with mySQL Workbench. Here's the procedure. DECLARE courseID int ; SELECT courseID = idCourse …

  11. Some results have been removed
Refresh