I need to execute a complex query for testing purposes with params.
How to write a SELECT query which can be executed in DataGrip / PgAdmin with params:
EXECUTE 'SELECT * FROM tenant where id = $1'
USING 6;
END
(this doesn't work)
and I need to get the same result as from:
SELECT * FROM tenant where id = 6
Thank you