Skip to content

Database.Select but raw #1731

Discussion options

You must be logged in to vote

I found out how to do that, you can do it like this

query.select(Database.raw('priceEach * quantityOrdered as total'))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rodolphonetto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant