Help for this page

Select Code to Download


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