How do I declare a variable for use in a PostgreSQL 8.3 query?
In MS SQL Server I can do this:
DECLARE @myvar INT SET @myvar = 5 SELECT * FROM somew
You may resort to tool special features. Like for DBeaver own proprietary syntax:
@set name = 'me' SELECT :name; SELECT ${name}; DELETE FROM book b WHERE b.author_id IN (SELECT a.id FROM author AS a WHERE a.name = :name);