Named Parameters in MySQL Workbench Queries?
-
22-10-2019 - |
Question
In OpenOffice / LibreOffice I'm used to added :prefixed-parameter-names
to my queries.
For example:
SELECT name FROM table1 WHERE id = :id
Is there a similar functionality in MySQL Workbench?
Solution
SET @given_id = 1;
SELECT name FROM table1 WHERE id = @given_id ;
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange