SQLiteでprepared statementとBLOBを使って構造体を保存(C言語)その2 #sqliteと言うわけで、前回に続き今回は、前回作成したDBファイルをsqlite3コマンドで見てみます。

以下の様に構造体はBLOBで格納したのですが、最初のメンバーはsqlite3コマンドで見られます。
Oracleではちょっと考えられませんが、この辺がsqliteらしいとこでしょうか。

$ sqlite3 test.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from member;
0|Isono Katsuo
1|Isono Wakame
2|Huguta Tarao
3|Huguta Masuo
4|Huguta Sazae
sqlite>


関連記事:

Facebook Comments

 Leave a Reply


上の画像の文字を入力して下さい(入力必須)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">