Rodhos Soft

備忘録を兼ねた技術的なメモです。Rofhos SoftではiOSアプリ開発を中心としてAndroid, Webサービス等の開発を承っております。まずはご相談下さい。

2015-10-05から1日間の記事一覧

制約

PRIMARY KEY プライマリキー 複数カラムに設定できる。 重複した値を設定できなくなる(複数カラムに設定している場合は組み合わせた値が重複しない)。 nullは入る sqlite> create table person3(id integer primary key, name text); sqlite> insert into pe…

テーブルの作成、カラムの追加、テーブルの削除

テーブル一覧 sqlite>.tables テーブル作成 sqlite>create table person2(id integer, name text); テーブルの削除 sqlite>drop table hogeson テーブル名変更 sqlite> alter table person2 rename to hogeson; カラムの追加(削除は不可能) sqlite>alter tab…

ヘルプ

sqlite> .help .backup ?DB? FILE Backup DB (default "main") to FILE .bail on|off Stop after hitting an error. Default OFF .clone NEWDB Clone data into NEWDB from the existing database .databases List names and files of attached databases .d…

設定

設定表示 sqlite> .show echo: off eqp: off explain: off headers: off mode: list nullvalue: "" output: stdout separator: "|" stats: off 設定のmodeをラインに変えてみる。 sqlite> .mode line