1
我有這樣的代碼:ANORM GET爲智力結果
def getUserId(email: String) = DB.withConnection { implicit con =>
SQL("select userId from signUp where email = {email}").
on('email -> email).as(SqlParser.str("access_token").singleOpt)
}
它給String
結果。
我怎樣才能得到結果爲Int
。