Hello Every one i m new to perl DBI...

if i have two database oracle and PostgreSQL...now in my shell script there is single query base on PostgreSQL ....now it is possible that same query work for both oracle and PostgreSQL????
Because oracle have limit 30 character table name and in PostgreSQL its different...Postgres have different functionalities to crete CSV file in oracle their is different..

can i achieve same as java hibernet its mapping the database to object..means database is different table name is different but according to database mapping its apply the query....

u have any other suggestion so please guide me ....