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?

Was it helpful?

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
scroll top