Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Mixing Perl and SQL

by toma (Vicar)
on Nov 04, 2009 at 21:04 UTC ( [id://805063] : note . print w/replies, xml ) Need Help??

in reply to Re: Mixing Perl and SQL
in thread Mixing Perl and SQL

My code has to create the whole database from scratch, so I would need to include the SQL code that creates the stored procedures, and therefore I think I would be left with the same mixed-language issue.

For example, one of my programs first uses modules to transform the input data from several formats into flat files. Then it uses modules that include the SQL to:

  1. Create an empty database with tables and views.
  2. Load the data from flat files.
  3. Transform the data into another set of tables that use a different indexing scheme.
  4. Query the data to generate a report.

It should work perfectly the first time! - toma