3 posts tagged “sqlite”
perl -MCPAN -e shell で CPAN shell を起動し、DBD::SQLite を install しようとしたら、
error: invalid type argument of ‘unary *’
という error が沢山出てしまい上手くいかなかった。
調べて見ると、Debian系 (Ubuntu, etc.) であれば
libdbd-sqlite3-perl
というパッケージがあるので、こちらを利用すると良い。
Perl の module である DBD::SQLite について、2008-07-04 現在の情報を書きます。
a) DBD::SQLite で使われている SQLite の version は 3.x系とのこと。
( see http://getpopfile.org/docs/howtos:allplatformsrequireperl )
b) DBD::SQLite2 は SQLite version 2.x を使っている。
Windows で SQLite を使用する。
1. データベース の作成
a) sqlite が "C:\sqlite\sqlite3.exe" にあるとして
b) command prompt で
cd /sqlite
c) C:\sqlite> で
sqlite3 DBNAME.db