0

I want to use Limit and Order By "abc" DESC in Query , i am not getting solution

BuyActivity.this
            .getContentResolver()
                          .update(LearnBirdContactClass.LearbirdTable.SUB_CAT_URI_CONTENT_URI,
                                    contentValuessubcat,
                                    LearnBirdContactClass.SubCategortyTableColumns.CAT_ID
                                            + " = ? AND "
                                            + LearnBirdContactClass.SubCategortyTableColumns.SUB_CAT_ID
                                            + " = ?", new String[] { catId, });

How to add limit and Order By in this

Thanks

Aditay Kaushal
  • 861
  • 6
  • 17

1 Answers1

0

The SQLite library in Android has not enabled the UPDATE/DELETE LIMIT clause, so even if the content provider had an interface for such a limit (which it hasn't), it would not work.

You have no choice but to uniquely identify the row(s) you want to update.

CL.
  • 165,803
  • 15
  • 203
  • 239