<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sos_jp</author_name>
  <author_url>https://blog.hatena.ne.jp/sos_jp/</author_url>
  <blog_title>sos の 作業メモ</blog_title>
  <blog_url>https://sos.hatenablog.jp/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Objective-C</anon>
  </categories>
  <description>その２の続き 書き込めるようになったので、今度は読み込みです。 SQLを元にPreparedStatementを作るところまでは一緒で、あとは sqlite3_stepの戻り値がSQLITE_ROWの間、データをfetch(一レコードずつ読み込み)します 読み込み データタイプに応じた読み取りメソッドを用意。注意する点は、カラムのインデックスが0から始まることです。 書き込むときは1でしたが、読み込む時は0です。 これに気づかずに半日悩みました。 + (int)columnInt:(sqlite3_stmt*)pstmt index:(int)index { return sqlite3_co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsos.hatenablog.jp%2Fentry%2F2013%2F02%2F16%2F142527&quot; title=&quot;SQLite3を使うよ その３ 読み込み - sos の 作業メモ&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>2013-02-16 14:25:27</published>
  <title>SQLite3を使うよ その３ 読み込み</title>
  <type>rich</type>
  <url>https://sos.hatenablog.jp/entry/2013/02/16/142527</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
