At the moment I use the following in a MySQL script:
      while read user processes; do
        echo "
    INSERT INTO userProcesses (
      \`dateTime\`,
      \`user\`,
      \`noOfProcesses\`
    )
    VALUES (
      '${DATE_TIME}',
      '${user}',
      ${processes}
    )" | mysql --database=${DATABASE} -t
      done

Is something like this possible with H2? At the moment I use
org.h2.tools.shell. I could build the complete query, but I find the
solution with the pipe more elegant.

-- 
Cecil Westerhof

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to