I created the following function for my postgresql
:
CREATE FUNCTION myfunc(param INT) RETURNS VOID AS..
How can I call that function without SELECT
?
When I run SELECT myfunc(1)
it will work, even though it does not return anything by design.
But I want to run it without the select, just myfunc(1)
, which does not work and tells me Syntax error at 1
.
I'm trying to implement the db_merge function from Insert, on duplicate update in PostgreSQL?.
I cannot run SELECT db_merge(..)
from java as this will give me a "A result was returned when none was expected."), PSQLState.TOO_MANY_RESULTS)
error.