70.5k views
4 votes
Will OQL query return collection as its result?

User Gorros
by
8.1k points

1 Answer

2 votes

Final answer:

Yes, an OQL query can return a collection as its result.

Step-by-step explanation:

Yes, an OQL (Object Query Language) query can return a collection as its result.

OQL is a query language used to retrieve data from object-oriented databases. It is similar to SQL (Structured Query Language) but is specifically designed for querying object-oriented data.

In OQL, a query can specify that it wants to retrieve a collection of objects that meet certain criteria. For example, a query could retrieve all the students with a certain grade or all the books published in a certain year.

User Jens Kohl
by
8.0k points