my $dbh = DBI->connect("dbi:Oracle:host=1xx.1x1.130.131;sid=xxxx;port=1521",
	$user_id,
	$passwd,{RaiseError=>1}
) || die "can NOT connect";

  其中RaiseError的作用在于当execute sql时如果出现错误则丢至上层,而不退出程序

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2022-03-09
  • 2022-12-23
  • 2022-02-02
  • 2021-12-02
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-12-22
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案