Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I write a pass-thru OQL?

OQL pass write
0
10 Posted

Can I write a pass-thru OQL?

0

Yes. Just put “CALL SQL” keywords in front of your SQL statement. For example, OQLQuery oql = castorDb.getOQLQuery( “CALL SQL SELECT id, name, date “+ “FROM user WHERE upper(name) like $1 AS myapp.Product”); But remember that the order of the fields listed must match what is defined in the mapping file.

0

Yes. Just put “CALL SQL” in front of your SQL statement.For example, OQLQuery oql = castorDb.getOQLQuery( “CALL SQL SELECT id, name, date “+ “FROM user WHERE upper(name) like $1 AS myapp.Product”);Be remember that the order of the fields listed must match what is defined in the mapping file.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123