SELECT with many setting set SQLite (> 200)

Hello

I have an exception when I run a simple SELECT with 220 parameters:

Statement st = mSQLiteDatabase.createStatement ("SELECT name, UserId FROM myTable WHERE UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? OR UserId =? ») ;

If I execute the same statement with 10 settings for example, there were no problems!

Is this another limitation of implementation of Blackberry?

Thanks in advance.

You can try this IN operator

Statement st = mSQLiteDatabase.createStatement ("SELECT name, UserId FROM myTable WHERE UserId in (UserId, UserId, UserId, UserId,... UserId);")

Note: This is not tested in the Sqlite database.

But successfully performed in the other RDatabase.

Thank you

------------------------------------------------------------------------------------
Kudo press to say thank you to the developer.
Also, press accept it as a button when you got the Solution.

Tags: BlackBerry Developers

Similar Questions

  • List of selection with redirection sets the values to null

    I saw another post with a similar issue. However, the answer given does not work for me.

    I have a "Site" text field whose value depends on a list of select 'customer '. I am able to set the value of "Site" based on the select list with redirect. However, other values on this page are reset to null.

    I saw an answer that says to change the display of selection list type to "select the list to submit." But this type of display requires a page that deals with the process is created. This solution did not help either.

    Any solution?

    If you follow this example, you will be able to set the status of the session without redirection / layout page:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:229

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Works with many setting of output

    Dears

    I want to choose an output function spisfied parameter
    Get_Net_Accrual
    (P_Assignment_ID NUMBER
    P_Plan_ID number
    P_Payroll_ID number
    P_Business_Group_ID number
    Default of P_Assignment_Action_ID number -1
    P_Calculation_Date AS
    P_Accrual_Start_Date IN Date default null
    Default of P_Accrual_Latest_Balance number null
    , P_Calling_Point IN Varchar2 default 'FRM '.
    , P_Start_Date DATE NOCOPY
    , P_End_Date DATE NOCOPY
    , P_Accrual_End_Date DATE NOCOPY
    P_Accrual certain number NOCOPY
    P_Net_Entitlement NOCOPY NUMBER);


    I need to select that one parameter to be out put as

    Select apps.per_utility_functions.get_net_accrual (13222
    61
    81
    -1
    , to_date (December 1, 2012 ',' MON-DD-YYYY "")
    (61) as the double net;

    This select statement get P_Net_Entitlement parameter but I need to get P_Accrual as output

    any idea?

    Anyway, in SQL create object and array types:

    CREATE OR REPLACE
      TYPE Net_Accrual_Obj_Type
        AS OBJECT(
                  Start_Date DATE,
                  End_Date DATE,
                  Accrual_End_Date DATE,
                  Accrual NUMBER,
                  Net_Entitlement NUMBER
                 )
    /
    CREATE OR REPLACE
      TYPE Net_Accrual_Tbl_Type
        AS TABLE OF Net_Accrual_Obj_Type
    /
    

    Now create a wrapper function:

    CREATE OR REPLACE
      FUNCTION Get_Net_Accrual_Func(
                                    P_Assignment_ID IN NUMBER,
                                    P_Plan_ID IN NUMBER,
                                    P_Payroll_ID IN NUMBER,
                                    P_Business_Group_ID IN NUMBER,
                                    P_Assignment_Action_ID IN NUMBER DEFAULT -1,
                                    P_Calculation_Date IN DATE,
                                    P_Accrual_Start_Date IN DATE,
                                    P_Accrual_Latest_Balance IN NUMBER,
                                    P_Calling_Point IN VARCHAR2 DEFAULT 'FRM',
                                    P_Start_Date IN DATE,
                                    P_End_Date IN DATE,
                                    P_Accrual_End_Date IN DATE,
                                    P_Accrual IN NUMBER,
                                    P_Net_Entitlement IN NUMBER
                                   )
        RETURN Net_Accrual_Tbl_Type
        PIPELINED
        IS
            v_Net_Accrual_Obj Net_Accrual_Obj_Type := Net_Accrual_Obj_Type(
                                                                           P_Start_Date,P_End_Date,
                                                                           P_Accrual_End_Date,
                                                                           P_Accrual,
                                                                           P_Net_Entitlement
                                                                          );
        BEGIN
            Get_Net_Accrual_Func(
                                 P_Assignment_ID,
                                 P_Plan_ID,
                                 P_Payroll_ID,
                                 P_Business_Group_ID,
                                 P_Assignment_Action_ID,
                                 P_Calculation_Date,
                                 P_Accrual_Start_Date,
                                 P_Accrual_Latest_Balance,
                                 P_Calling_Point,
                                 P_Start_Date,
                                 P_End_Date,
                                 P_Accrual_End_Date,
                                 P_Accrual,
                                 P_Net_Entitlement
                                );
            PIPE ROW(v_Net_Accrual_Obj);
    END;
    /
    

    Now you can call it in SQL:

    SELECT  *
      FROM  TABLE(Get_Net_Accrual_Func(specify-parameters-here))
    /
    

    SY.

  • Unable to set keyframes in the audio clip selected with the pen tool - can no longer see the volume control line after developing the clip. What could be the problem? This seems to be the problem on any project that I opened.

    Cannot set keyframes in the audio clip selected with the pen tool - cannot see even the line volume control more to set keyframes on having developed the clip. What could be the problem?  I use the first CC pro @.

    You can use the Ctrl key and then click with the regular selection tool, clicking with ctrl will make a new keyframe. in this way, have no need for the tools. CTRL has other great shortcuts that will stop you having to spend retouching pads tools too.

    If the automation keyframe line is missing, you can switch on and off in the menu sequence.

  • Can I set up a folder with many files and give only a limited number of people access? Just as in the old system.

    Can I set up a folder with many files and give only a limited number of people access? Just as in the old system.

    Hi oliviner,

    If you are referring to the workspaces, then yes it is possible but the service will be removed in January 2015

    If you are referring to files.acrobat.com, so if you can create folders and put the files into it, but you cannot assign access to specific people as you could in workspaces.

    Kind regards

    Rave

  • Problem with the 'Set Up' for CS4 application

    Still no luck - I'm on a mac under OS 10.9.5 and I'll have an iEdition with the 'Set Up' app for the teacher/student CS4 version: I had to reinstall my CS4 Design premium. The trouble begins after I click the app Set Up - I get to the section "installing applications" of the process, but then window in Set Up will not let me scroll down to select applications to install InDesign, Photo shop etc. If I try to start checking the boxes, the installation process seems just to stall and no progress bar appears. When I select 2 boxes of application as a test, I get a msg of error "Setup error". I have both version CS4 I bought the disc and the downloaded version that the cat office sent me too and the error occurs on two versions of the Set Up. I hope someone can help because I need this software pkg working again as soon as possible. TKS

    Too old for Adobe to support and I'm not Mac

    kglad links in response to #1 here https://forums.adobe.com/thread/2017859 can help try another download

  • Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half to separate

    Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half in separate PDF files. for example I entered that do three pdfs of 1-5, 5-7, 8-10 pages and it will result in me

    first pdf = 1-5 pages

    second pdf = 5-7 pages

    Third pdf = 8 to 10 pages.

    Y at - there no way to do it with adobe acrobat or any other software? I tried many software including adobe with extract and split option, but I did not get the results you are looking for. so please:

    I would like to know if any of you have any knowledge about it. I have

    Thnanks in advance!

    Hi minixain,

    Yes, you can do it using Adobe Acrobat application (Adobe Acrobat free trial downloadversion |) Acrobat Pro DC), please refer to this document for help KB split a PDF | Adobe Acrobat DC tutorials.

    Kind regards

    Nicos

  • Create the database with a set of characters

    Hello

    I need to create a database with the character US8PC437 (platform Linux Redhat 5.4 64-bit, database version 11.2.0.3), but this character set do not appear when I create the database with the database assistant (DBCA).

    Any help will be apreciated.


    Best regards

    Antonio Serrano

    Published by: albrotar on March 6, 2012 09:14

    While AL32UTF8 is certainly recommended for the Oracle database character set, use only, if your application provider has confirmed that their application will work with a set of characters to multibyte database.

    To create a database US8PC437 (it is rarely a choice, in fact) with DBCA 11.2, select the "character sets" tab, once shown, then select the option 'Choose from the list of character sets' and uncheck 'Show recommended only character sets '. This will add US8PC437 to the "Database character set" drop-down list. Select "US8PC437" from the list and continue the process of creation.

    But first, contact your provider and ask a compatible Unicode version of your application.

    -Sergiusz

  • How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    I know it should be easy, but my brain doesn't work right now


  • When I try to open e-mail files a small box opens with the setting or the input string was not good format

    original title: windows live suit

    When I try to open e-mail files a small box opens with the setting or the input string was not good format

    Windows Live Solution Center
    http://windowslivehelp.com/

  • Is it possible to play or pause a video by clicking on the video itself than with a set of the command bar and stop buttons?

    Is it possible to play or pause a video by clicking on the video itself than with a set of the command bar and stop buttons? If Yes, how can we do?

    When you set the video object, just add a listener for events such as:

    myVideo.addEventListener (MouseEvent.CLICK, toggleVideoPlayback);

    private void toggleVideoPlayback(e:MouseEvent):void {}

    If play, pause

    If in pause, play

    }

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • Silent install EM 12 c BP1 with many plugins

    Hello

    I want silent install enterprise manager cloud control 12 c BP1 with many plugins in linux64, there are commands with parameters such as

    . / runInstaller-silent - responsefile $INS_DIST/response/new_install.rsp UNIX_GROUP_NAME = oinstall INVENTORY_LOCATION = $ORA_BASE/oraInventory...

    PLUGIN_SELECTION = {"Oracle.em.SECL", "Oracle.em.secs", "Oracle.em.sesy", "Oracle.em.SOEE", "Oracle.em.SIDB"}

    Parameter PLUGIN_SELECTION is used for the selection of the plugin. I'm sure that these values are correct and the setting is also correct, I followed the example of its use in new_install.rsp.  But after the installation, I check the EMCC plugin page, install only one or two plugin and sometimes not the plugin that I've specified in the PLUGIN_SELECTION parameter. Very strange.

    Does anyone know why? need help ~ ~ ~

    Thank you

    Jing

    Hi Jing,

    I suggest that you install the last em 12.1.0.2 and or 12.1.0.1 with BP1.  Is there a particular reason that you want to install 12.1.0.1 with bp1?

    Call setup:

    ./runInstaller -silent -responseFile /new_install.rsp-pluginLocation

    and then in the rsp file mention thisPLUGIN_SELECTION={"oracle.sysman.empa","oracle.sysman.vt"}

    By default, mandatory plug-ins such as plug-in database management Oracle, Oracle Fusion Middleware Management Oracle My Oracle Support Management and Oracle Exadata management plug-in plug-in, plug-ins get automatically installed with the Enterprise Manager System.

    However, if you want to install other optional plug-ins that are available in the software kit (DVD or downloaded software), and then enter the names of these plug-ins for this variable.

    If you have the default binary files that you downloaded from OTN with name - em 12.1.0.1 with bp1, then you don't have to pass this parameter, this parameter is no longer applicable for users who have 12.1.0.1 without bp1 em...

  • Select with LESS vs two VARRAYS with MULTISET

    Hi all

    I just wanted to know, which one of the two following is faster and results in better performance.

    1. SELECT statement containing 200 + columns in a Table with operator LESS. (TWO SELECTS with operator between them LESS)

    2. loading of the individual SELECT statement (with some LESS) result sets in two different VARRAYS and then use these two operators of type MULTISET.

    That one is faster and uses less memeory?

    Thank you
    REDA

    Direct SQL is still fast compared to the PLSQL. When you use varrays, there will be change of context. Even if you use Bulk collect for loading data yu have to put a limit of 1000 and not beyond.

  • Page with many scrollables components?

    Hello

    How to make a page with many scrollable components?

    I have about 15 lines of components. Because I can't make page (container) scrollable, it hides the latest 5 components.

    Thank you!

    I got it. I put the set containing inside the ScrollView

    Thank you!

Maybe you are looking for

  • Update the driver afer the Satego X 200 display resolution

    Hi after update my Satego X 200 - 21 d with the latest NVIDIA Display Driver of Toshiba, I lost a partDesktop resolutions (1400 * 900)What is the problem? Thank you

  • X 230: keys broken / loose

    Hi all. I bought a ThinkPad X 230 summer 2013. It has been working well so far, but a few days ago, I started to notice that the "n" key has been a little loose. I pressed it, it makes a "clicking" sound and returned to its normal position. However t

  • LENOVO G580 RAM UPGRADE

    Hi all as I want to increase the ram of my laptop i5-20150 g580 as I want to know how capactiy of ram it supports please answer me as soon as possble thanks in advance

  • Network card driver are not not in Device Manager

    Original title: need network card (wired) for Windows XP I have a 3 year old desktop computer (Compaq Presario SR5548F) and a few days ago I downgraded my Vista to XP (raw just XP programs) and now I have no internet connection (internet works fine o

  • problems with the help of cd - rw discs

    When I burn a cd on the media player using a new cd - rw disc (bought a pack of 100 & the need to use), he will play only on my computer. When I use a cd - r I have no problem playing the disk on any player. I use the mp3 format in my library & do ch