import sqlite3 import datetime # DBãéããé©å颿°ã»å¤æé¢æ°ãæå¹ã«ããã conn = sqlite3.connect(':memory:', detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_COLNAMES) # "TIMESTAMP"ã³ã³ãã¼ã¿é¢æ° ããã®ã¾ã¾ âDATETIMEâ ã«ã使ã sqlite3.dbapi2.converters['DATETIME'] = sqlite3.dbapi2.converters['TIMESTAMP'] # ã«ã¼ã½ã«çæ cur = conn.cursor() # datetimeã¨ããååã®ã«ã©ã ãæã¤ãã¼ãã«ã使 cur.execute("create table mytable(comment text, updated datetime);"


{{#tags}}- {{label}}
{{/tags}}