Hi all
I'm trying to do a simple select in postgresql, something like this
if not exists (select 1 from table where a = 'blah')
begin
insert into table values ('a','b','c')
What i'm trying to do is to see whether a value already exists in a table, if it doens't i want to insert the value
But when i do this in query analyser if gives me an error on the if
Can anyone help me with this
Thanks