Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

createQuery() return types  RSS feed

 
akhil achuthan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to execute a query something like "select count(*) as count, name as username from table tablename".

How can I use the createQuery() in this case as my result will fetch me just 2 columns(count and name).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!