Skip to content
Prev 1509 / 1559 Next

Parameterised queries

On 15-02-13 08:49 PM, Tim Keitt wrote:
I don't have the tools to test anything at the moment, but the rpg note 
under write_tables says "write_table uses SQL INSERT statements".

Just to be clear, I know

     INSERT INTO PRODUCT (name, price) VALUES (bread, 1.0)
     ...
     INSERT INTO PRODUCT (name, price) VALUES (butter, 2.5)

is slow, it is

     INSERT INTO PRODUCT (name, price) VALUES (
       (bread, 1.0),
        ...
       (butter, 2.5))

that I think is fairly fast. (I might have the syntax wrong.)

Paul