Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:56:43+00:00 2026-06-15T23:56:43+00:00

I want to select the rows that match the passed eta , category and

  • 0

I want to select the rows that match the passed eta, category and class, attributes but that doesn’t contains the passed use1 and use2 attribute, so I have written this code

public Cursor getData(String use1, String use2, String eta, String category,
            String class) {
        try {
            Cursor c;
                c = mDb.rawQuery(
                        "SELECT * FROM dbtable "
                                + "WHERE Use NOT LIKE ? AND Use NOT LIKE ? AND Eta LIKE ? AND Language LIKE ? ORDER BY Name",
                        new String[] { "%" + use1 + "%", "%" + use2 + "%", "%" + eta + "%",
                                "%" + language + "%" });
            if (c != null) {
                c.moveToNext();
            }
            return c;

        } catch (SQLException mSQLException) {
            Log.e(TAG, "getDataCar >>" + mSQLException.toString());
            throw mSQLException;
        }

    }

Unfortunately doesn’t work, and doesn’t exclude the rows that contains the attributes use1 and use2, if I remove the two NOT LIKE conditions, works fine… so there is a syntax error with the two NOT LIKE conditions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:56:44+00:00Added an answer on June 15, 2026 at 11:56 pm

    Solved,
    The problem is caused by a whites space in the column of database… the syntax is right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to efficiently check if a table contains any rows that match <condition
I want to select some rows that match a certain hour interval. So I
i have list of rows that user select and i want to delete them,
I want to select rows from a table if a column contains a certain
I want to use Linq to ADO.NET to fetch all rows that match the
I want to bulk export from a select table, all columns that match a
I want to extract rows from a file that match a particular pattern and
I have a query with loads of columns. I want to select rows where
I have two tables - forum_topics and topics_posts . I want to select rows
I want to select multiple rows from checkbox and want to update them all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.