2015年3月10日火曜日

PythonでSQLを使う

基礎で参考にsqlite3
http://www.lifewithpython.com/2013/10/sqlite3.html

数値ではなくカラム名での読み出し、メモリ上のみにテンポラリのDBを作成
http://www.mwsoft.jp/programming/python/sqlite3.html

特定カラムの値順で表示
http://www.python-izm.com/contents/external/sqlite.shtml

昇順降順の切り替え
http://www.w3schools.com/sql/sql_orderby.asp

細かい仕組みの説明あり
http://coreblog.org/ats/stuff/minpy_web/07/03.html

コマンド一覧的なもの
http://www.gesource.jp/programming/python/code/0013.html

MySQLならユーザー名、パスワードなどの管理も
http://www.python-izm.com/contents/external/mysql.shtml

カラムの追加
http://stackoverflow.com/questions/4253804/insert-new-column-into-table-in-sqlite