<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>slayer845</author_name>
  <author_url>https://blog.hatena.ne.jp/slayer845/</author_url>
  <blog_title>足跡</blog_title>
  <blog_url>https://slayer845.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>Perl</anon>
  </categories>
  <description>RaiseErrorを有効にしてDBIにdieさせてevalでキャッチ。 AutoCommitは切る。SELECT文だけしか使わない時はどっちでもいい。 問題なく全てが終了したときだけcommitする。他は全部rollbackして元に戻す。 外部から入力された値をSQL文に組み込むときは必ずプレースホルダを使う。 SELECT文を使うならなるべくbind_columnsとfetchの組み合わせで値を取得するようにする。 use DBI; # SQL文。 my $sql = &lt;&lt;SQL; SELECT * FROM SampleTable WHERE ID = ? SQL my $dbh = D…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fslayer845.hatenadiary.org%2Fentry%2F20081010%2F1223622267&quot; title=&quot;DBI使うときの鉄板 - 足跡&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-10-10 16:04:27</published>
  <title>DBI使うときの鉄板</title>
  <type>rich</type>
  <url>https://slayer845.hatenadiary.org/entry/20081010/1223622267</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
