我有一个perl代码,我们正在读取.txt文件,但现在尽管使用了.txt,我们还是想从H2DB数据库中读取数据。我试着搜索,但似乎没有可用的模块。你们中有人能帮个忙吗。
发布于 2013-04-17 15:57:00
H2支持Postgresql网络协议,因此您可以尝试使用postgres的驱动程序来实现此目的。
以下是您可以使用的模块:
use DBI;
$dbh = DBI->connect("dbi:Pg:dbname=$dbname", "", "");
# for some advanced uses you may need PostgreSQL type values:
use DBD::Pg qw(:pg_types);
# See the DBI module documentation for full detailshttps://stackoverflow.com/questions/16054431
复制相似问题