Skip to content
Advertisement

Query did not return a unique result

This is the query I have written:

This is the output I am getting from the database:

id versions
101 0.0
101 1.0
101 2.0
101 3.0

In my application, I am storing this result in

but it gives an error saying “query did not return a unique result”

How can I store this result? which data structure could I use?

Advertisement

Answer

Try the below method:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement