Trying to make a column of type decimal:
Column('cost', DECIMAL)
Erorr, name 'DECIMAL' is not defined.
SqlAlch seems to support decimal, am I missing an import?
BTW, how do I also create a longtext column?
开发者_JS百科I'm using mysql.
try
import sqlalchemy.types.DECIMAL as DECIMAL
精彩评论