2014-03-30から1日間の記事一覧

SQLiteの自動インクリメント

<環境> CentOS 6.5/64bit sqlite 3.6.20 SQLiteで自動インクリメントするには、integerにPRIMARY KEYを指定すれば良い。 $ sqlite3 test.db SQLite version 3.6.20 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> CR…