Hello!<br />Can anyone tell me how i do this properly?<br /><br />create or replace function agg(varchar,varchar)
returnsvoid as $func$<br /> select $1,count(*) from $2 group by $1 order by $1;<br />$func$<br />Language
SQL;<br/><br />Right now this wives me "ERROR: syntax error at or near "$2" at character 97 <br />select $1,count(*)
from$2 group by $1 order by $1;"<br /><br />Thank you!<br /><br /><br /><br />