Using: PostgreSQL10 & pgAdmin4
So this query is simple:
SELECT * FROM [schema_name].[table_name]
WHERE [schema_name].[table_name].[field_name] = 'search_value';
In Transact-SQL you can create a variable for "search_value":
DECLARE @find varchar(30) = 'search_value';
SELECT * FROM [schema_name].[table_name]
WHERE [schema_name].[table_name].[field_name] = @find;
And even re-use the variable:
SET @find = 'new_search_value';
I have now tried everything to mimic this in PostgreSQL, but I can't get it working.
Any suggestions???