in reply to Re^5: Splitting the records into multiple worksheets
in thread Splitting the records into multiple worksheets

$dbh->do("INSERT INTO ExcelData SET name = '$name', data = $data");

I would not advocate that approach. Far safer to use placeholders.


🦛

Replies are listed 'Best First'.
Re^7: Splitting the records into multiple worksheets
by Bod (Parson) on Feb 21, 2021 at 19:33 UTC

    I do limit the privileges of the script's DB account to SELECT, INSERT, UPDATE, DELETE and CREATE TEMPORARY TABLE

      Which is enough to cause serious problems.... hence the tried and tested safe methods of working.

        tried and tested safe methods of working

        I have never heard of this methodology...are you referring to something like this or is there something else I need to discover?