first, install  DBI and DBD::Pg module

come next two example I have writen for testing:

example one:


example two:
output :
datname             blks_read           blks_hit            
------------------------------------------------------------
template1           0                   0                  
template0           0                   0                  
postgres            136                 5955                
askwan              124                 7396
        

作者:askwan@『AskWan』
地址:http://www.askwan.com/use_DBD_Pg_to_connect_PostgreSQL_database/
可以转载,转载时请以链接形式注明作者和原始出处及本声明!

Scripts | Comments(0) | Trackbacks(0) | Reads(625)
收藏到网摘:百度搜藏 Google书签 Yahoo收藏 新浪ViVi收藏夹 365天天网摘 天极网摘 我摘·网摘·网络书签 POCO网摘 和讯网摘 Bolaa博拉博客收录中心 天下图摘
Add a comment
Emots
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
Enable HTML
Enable UBB
Enable Emots
Hidden
Remember
Nickname   Password   Optional
Site URI   Email   [Register]