- or download this
print
'INSERT INTO table(' . join(',', @fields)
. ') VALUES (' . join(',', ('?') x @fields)
. ')';
- or download this
{
local $" = ',';
print "INSERT INTO table(@fields) VALUES (@{[ map '?', @fields]})"
+;
}
- or download this
{
local $" = ',';
print "INSERT INTO table(@fields) VALUES (@{[('?') x @fields]})";
}