You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by akritibahal91 <ak...@outlook.com> on 2016/04/15 18:01:05 UTC
Using sql query in ignite
Hi,
I'm trying to use yoru sql query facility. And I'm doing something like
this:
String sql =
"select orgid from Person where id = ?";
QueryCursor<List<?>> cursor = cache.query(new
SqlFieldsQuery(sql).setArgs(2));
// In this particular case each row will have one element
with full name of an employees.
List<List<?>> r = cursor.getAll();
System.out.println("r= " + r);
But, I want to do some further transaction using this r variable, for which
I want to convert it to int. Please tell me how do I do that?
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Using-sql-query-in-ignite-tp4229.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.