in reply to Re: Differences in SQL syntax when using DBI (are there any)? And help on publishing module on CPAN.
in thread Differences in SQL syntax when using DBI (are there any)? And help on publishing module on CPAN.
Also watch out for database functionality differences. For example, with a transactional database (mysql is not) you will either want to add $dbh->commit() statements, or turn on autocommit when you set up the database handle, like:
$dbh = DBI->connect($dsn, $user, $password, { RaiseError => 1, AutoCommit => 1 });
In general, if the goal is to do database manipulation without writing any actual SQL, probably the purest implementation I've seen is Class::DBI.
Xaositect - Whitepages.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Differences in SQL syntax when using DBI (are there any)? And help on publishing module on CPAN.
by techcode (Hermit) on Jul 15, 2005 at 19:23 UTC | |
Re^3: Differences in SQL syntax when using DBI (are there any)? And help on publishing module on CPAN.
by itub (Priest) on Jul 15, 2005 at 18:15 UTC |
In Section
Seekers of Perl Wisdom