「SQLite3」の編集履歴(バックアップ)一覧に戻る

SQLite3 - (2009/11/03 (火) 07:30:19) のソース

*&this_page()

**データベース
***起動(コマンドプロンプト)
 >sqlite3 データベース名
データベース(xxx.sqlite)があればログインし、なければ作成します。

***ヘルプの表示
 sqlite>.help

***環境情報の取得
 sqlite> .show
|     echo|: off   |     |
|  explain|: off   ||
|  headers|: on    |     <――― >.headers on で変更できる(SELECT文時に、結果にヘッダーがつく)|
|     mode|: column|          <――― >.mode column で変更できる(SELECT文時に、結果がカラム毎の幅で整形される)|
|nullvalue|: ""    ||
|   output|: stdout|          <―――出力場所。ファイル名にすればファイルに出力。stdout は画面のこと|
|separator|: "|"   ||
|    width|:       ||

**テーブル
***テーブル一覧
 sqlite>.tables

**SELECT文
***行数指定
 sqlite>SELECT カラム名, ... FROM テーブル名 LIMIT 行数;



***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***
 sqlite>

***

 sqlite>

***
 sqlite>














----
// アクセス解析
#include_js(http://www.research-artisan.com/userjs/?h=2&user_id=20091024006000857)
目安箱バナー