I came across this operator :=
in a postgresql function:
searchsql:= searchsql || ' WHERE 1=1 ' ;
I googled but cannot find the answer, what does it mean?
I came across this operator :=
in a postgresql function:
searchsql:= searchsql || ' WHERE 1=1 ' ;
I googled but cannot find the answer, what does it mean?
:=
is the assignment operator in PL/pgSQLThe expression
appends the string
' WHERE 1=1 '
to the current value of the variablesearchsql
See the manual for details:
http://www.postgresql.org/docs/current/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-ASSIGNMENT