サービス
サービスを探す
プロ人材を探す
仕事を探す
ブログを探す
import sqlite3
with sqlite3.connect("データベース", detect_types=sqlite3.PARSE_DECLTYPES) as con:
列名 DATE
import sqlite3
with sqlite3.connect("データベース", detect_types=sqlite3.PARSE_DECLTYPES) as con:
列名 TIMESTAMP
DEFAULT CURRENT_TIMESTAMP
CAST(strftime("%Y", 日付) AS INTEGER)
CAST(strftime("%m", 日付) AS INTEGER)
CAST(strftime("%d", 日付) AS INTEGER)
date(日付, '-n day')