我在Sybase数据库上有sqlalchemy ORM映射。我的一些表名都相当长,我收到以下错误:sqlalchemy中的列别名太长/ Sybase ASE
DBAPIError: (Error) ('HY000', "[HY000] [DataDirect][ODBC Sybase Wire Protocol driver]
[SQL Server]The column heading that starts with 'RISK_AGGREGATION_GROUP_id_risk_agg' is
too long. Maximum length is 30.
有什么办法我可以:
一)“或者”内SQLAlchemy的表,以便它使用更短列别名
二)增加30个字符的限制
我知道我可以创建视图的数据库内,但宁可不动它。
谢谢
什么版本的sybase是这样的? docs说255是列,表格,用户定义标识符的最大长度:http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sqlug/html/sqlug /sqlug12.htm – zzzeek