Database-agnostic stored procedure call passing array of name/value pairs
Pass the values as XML (in a VARCHAR). The following database all support shredding XML from the query language:


Postgres
MySQL
SQL Server
Oracle
DB2 UDM


Obviously, not every obscure database on the planet supports it. But the ones above are realistically the only ones you need to care about to hit 99.9% of the database market.