时间类型
import datetime t = Table("mytable", meta, Column(‘id‘, Integer, primary_key=True), # define ‘last_updated‘ to be populated with datetime.now() Column(‘last_updated‘, DateTime, onupdate=datetime.datetime.now), )
时间: 2024-12-11 09:40:45
时间类型
import datetime t = Table("mytable", meta, Column(‘id‘, Integer, primary_key=True), # define ‘last_updated‘ to be populated with datetime.now() Column(‘last_updated‘, DateTime, onupdate=datetime.datetime.now), )