12

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?

17
SET @given_id = 1;
SELECT name FROM table1 WHERE id = @given_id ;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.