denise28

做不成学术帝,就一辈子做吃货~
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Perl

摘要:使用Perl,向Mysql中插入数据 #!/usr/bin/perl use strict; use DBI; # Connect to the database. my $dbh = DBI->connect("DBI:mysql:database=test;host=localhost", # "joe", "joe's password", {'RaiseError' => 1}); # Drop table 'foo'. This may fail, if 'foo& 阅读全文

posted @ 2012-02-05 16:24 denise28 阅读(442) 评论(0) 推荐(0)

摘要:Things we need to do before we continue our work: Make sure you install the right DBI. Perl DBI for Mysql :http://www.cs.wcupa.edu/docs/mysqlEZinfo/perl_dbi.html Install Perl DBI :http://cpansearch.perl.org/src/RUDY/DBD-mysql-2.9008/INSTALL.html#windowsWithout DBI, you may encounter eorrors like... 阅读全文

posted @ 2012-02-03 15:49 denise28 阅读(252) 评论(0) 推荐(0)