Backendless Support
 
Answered

DataQueryBuilder().setWhereClause();

Hi,

Here is a code snippet....

DataQueryBuilder builder = DataQueryBuilder.create();

builder.setWhereClause("");

My Question is what do I insert in the setWhereClause() parameter?

Do I need to use SQL to create a query in the parameter?

For Example:

builder.setWhereClause("SELECT * FROM <table name> WHERE <condition>");

or must I only put in a where clause without the select statement(If I need to use SQL)?

Leave a Comment

Comments (1)

photo
1

Hi Rhonwen,

You should only put the "<condition>" part, here are the examples: https://backendless.com/docs/android/doc.html#search-with-the-where-clause