Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
试图将记录 ID 转换为 Int32 并以冗长的三行/层技巧结束,以实现显而易见的目标。必须有更短的方法。有人可以让我摆脱痛苦吗?
var XX = resultSet.stringForColumn("ID") var XXX = XX.toInt() recordNumberBack = Int32(XXX!)