Jeff Janes
Discussion: https://postgr.es/m/CAMkU=1w7Tn2M9BhK+rt8Shtz1AkU+ty7By8gj5C==z65=U4vyQ@mail.gmail.com
Dynamic SQL statements can also be safely constructed using the
format function (see
- linkend="functions-string"/>). For example:
+ linkend="functions-string-format"/>). For example:
EXECUTE format('UPDATE tbl SET %I = %L '
'WHERE key = %L', colname, newvalue, keyvalue);