摘要:
Unix manual pages(online documentation):man perlhttp://www.perl.orghttp://www.perl.comhttp://www.cpan.orghttp://www.activestate.comhttp://www.oreilly.com 阅读全文
摘要:
1、连接数据库#!/usr/bin/perluse strict;use DBI;my $tnsname = "DB234";my $username = "SCOTT";my $password = "TIGER";my $dbh = DBI->connect("dbi:Oracle:$tnsname",$username,$password) or die "Cannot connect db : $DBI::errstr\n";print "I have connect t 阅读全文
摘要:
1、安装之前,先检查一下当前系统中Perl的版本[root@arcerzhang ~]# perl -vThis is perl, v5.10.1 (*) built for x86_64-linux-thread-multiCopyright 1987-2009, Larry WallPerl may be copied only under the terms of either the Artistic License or theGNU General Public License, which may be found in the Perl 5 source kit.Complet 阅读全文
摘要:
Here is some pretty good code piece to check it:#!/usr/bin/perluse strict;use ExtUtils::Installed;my $inst=ExtUtils::Installed->new();my @modules = $inst->modules();foreach(@modules){ my $ver = $inst->version($_) || "???"; printf("%-12s -- %s\n",$_,$ver);}exit;View Code 阅读全文
摘要:
Oracle10G以前执行drop table后表就即被删除了。10G后引入了垃圾回收站的概念recyclebin。如果仍只是drop table xxx,表不会立即被删除,而是被暂时放入回收站。 可以保障某些误操作后还可以将表还原。 1.查看数据库是否开户recyclebin功能 SQL> sho... 阅读全文