in discussion Hidden / Per page discussions » Scaladbc
I am using scala lift . Also i using mysql to retrive the table value .
My doubt is ,
My query is —>val stmt4 = select ('id,'name) from('category) where 'name <>("'Contact'") and 'name <>("'Faq'")
printResults(db.executeStatement(stmt4.parse))
I want to display a id and name value .
def printResults(res: dbc2.result.Relation) {
for(val i <- res) {
for(val f <- i.fields) {
print("\t"+f.content.nativeValue)
}
println()
}
}
This code , f.content.nativeValue display value. i wnat how to extract id and name value.
send reply mail moc.liamg|5002ilarusnam#moc.liamg|5002ilarusnam






