Script that can access any type of(Teradata,Oracle) database

Hi,

I need to create a script that can execute database independent queries.
Database can be of any type whether tearadata,Mysql,oracle,DB2.

Does anyone have any idea how to implement this.

Consider perl and the DBI module - it is a database independent interface

Thanks for the Information.
Do you have any script related to this,as I am unaware of DBI Module.

try
DBI - Database independent interface for Perl - search.cpan.org