Trouble with a select

Hi ...
I have this select instruction:
SELECT * from TABELLA where NOME=:name;
There is a " special character " that if put into the WHERE condition , the SELECT instruction returns to me all the records ??
For instance , like the where condition would not exists.
Thanks
Max

Try to use LIKE instead of = sign. For instance:
SELECT * from TABELLA where NOME like :name;
you can use % (zero or more of any symbols) or _ (any one symbol) metacharacters in value of :name

Similar Messages

  • Trouble with a SELECT stament?Is this is a bug or am i an idiot

    DB version:10g Enterprise Edition Release 10.2.0.3.0
    I have a simple SELECT statement like
    SELECT ship_dtl.track_id,{color:#ff0000}_{color}ship_dtl.cons_id from ship_dtl
    If there is a space between coma and ship_dtl.cons_id in the query(a red underscore is used above to show the space). This query will give the error
    {noformat}ERROR at line 1:
    ORA-00942: table or view does not exist
    {noformat}
    But i don't get this issue with other tables. Why is this happening?
    Edited by: canine_Joe on Sep 4, 2008 3:04 AM

    canine_Joe wrote:
    How many lines of output do i to post to convince you?Ok, well let me be blunt...
    It's not a bug. It can't possibly be.
    Thousands, if not millions, of Oracle developers have been writing queries with or without spaces between their columns in the select clause for a long time now without any issue.
    The fact that Oracle is reporting the table is not found indicates that there's some other issue at hand.
    What version of SQL*Plus are you using against your 10.2.0.3 database? Maybe that's out of date and has a bug or is incompatible with 10.2.0.3. for some reason.
    What user/schema owns the table and what user is running the SQL?
    What permissions are on the table?
    What synomyms exist?
    Is there a problem with keyboard mappings on your client or the language settings on client or Oracle server, so the space isn't really a space character?
    How about taking your query with the space and doing...
    select dump('SELECT ship_dtl.track_id, ship_dtl.cons_id from ship_dtl;') from dual;and seeing what each character is in the string, just to confirm it's a chr 32 (space).
    There may be other reasons too...

  • IDCS4 Mac - Having trouble with a selection suite.

    Hello Everyone:<br /><br />I have implemented a very basic selection suite.  Here is what the code looks like in the .FR:<br /><br />  AddIn<br />  {<br />     kLayoutSuiteBoss, <br />     kInvalidClass,<br />     {<br />        IID_IWPCIMAGESSELECTIONSUITE, kWPCImagesSelectionSuiteCSBImpl,<br />     }<br />  },<br /><br />  AddIn<br />  {<br />     kIntegratorSuiteBoss,<br />     kInvalidClass, <br />     {<br />        IID_IWPCIMAGESSELECTIONSUITE, kWPCImagesSelectionSuiteASBImpl,<br />     }<br />  },<br /><br />The actual .CPP implementation is standard boilerplate changed only to render the code unique (in other words, I changed the "My" in "MyCSB" to "WPCImages", etc.).<br /><br />I will provide that code to anyone who really wants to look at it, but it was given to me by Adobe and I really haven't changed it aside from what I have said above.<br /><br />The code works in CS, CS2 and CS3, but in CS4 when I attempt this call:<br /><br />    SelectionSuite -> GetTheSelection(&selectUIDList);<br />    <br />the program errors out with the following message:<br /><br />program received signal "EXC_BAD_ACCESS"<br /><br />Here is the code in context:<br /><br />    <br />    UIDList *selectUIDList = NULL;<br />    IActiveContext *ac = GetExecutionContextSession() -> GetActiveContext();<br />    ISelectionManager *iSelMgr = ac -> GetContextSelection();<br />    <br />    InterfacePtr<IWPCImagesSelectionSuite> SelectionSuite(iSelMgr, UseDefaultIID());<br />    if(SelectionSuite == NULL)<br />       break;<br />    <br />    SelectionSuite -> GetTheSelection(&selectUIDList);<br /><br />Can anyone see where I am going wrong?<br /><br />TIA!<br /><br />John

    Try:<br />InterfacePtr<IWPCImagesSelectionSuite> SelectionSuite((IWPCImagesSelectionSuite*)Utils<ISelectionUtils>()->QuerySuite(IWPCImages SelectionSuite::kDefaultIID));<br />if (SelectionSuite == NULL) {<br />  break;<br />}

  • Trouble with lasso selection, quick selection, and error messages (saying selection is empty)

    Hi there
    I am trying to sect a person out of a picture and paste it into this collage picture I am working on. First i tried using the quick selection tool but I guess my man that I am trying to cut out has too many colors: when I go to use the quick selection it immediately goes into a box around the entire picture. I even tried painting the rest of the photo black with the exception of the man, but still the same results with the quick selection. Then I tried the lasso but nine times out of ten it would stop and make an odd selection. when I finally did get a good lasso selection (done after much cursing) then CS6 told me that "the selection is empty" . What? I did make a new layer before I did the selection.
    Can you help me resolve these issues?
    I just downloaded CS6 just a day ago and have a lot to learn, but i have worked with Paint.net and Paint Shop Pro for the past two years so I am familiar with paint and photo editing software.
    Thanks
    Kelly
    [ text changed to be readable by an admin ]

    Please don't submit your request in green. It is a needless distraction.
    Currently you are trying to make a selection in a blank layer.
    Return to the image layer, not the blank one you created, and you will be able to make a selection.
    Once selected, hit Cmd+J to put your selected object on a new layer. I think that is what you had in mind.

  • A trouble with "LIKE" in a select statement

    Hi!
    I'm having trouble with "LIKE" in a select statement...
    With Access I can make the following and everything works well:
    SELECT name, birthday
    FROM client
    WHERE birthday LIKE '*/02/*';
    but if try to do it in my application (it uses Access), it doesn't work - I just can't understand that!!!
    In my application the "month" is always the currently month taken from the "System". Look what I'm doing...
    String query1 = "SELECT name, birthday " +
              "FROM client " +
              "WHERE birthday " +
              "LIKE '*/" +
              pMonth +
              "/*' " +
              "ORDER BY birthday ASC ";
    ResultSet rs = statement1.executeQuery(consulta1);
    boolean moreRecords = rs.next();
    The variable "moreRecords" is always "false", the query returns nothing although the table "client" has records that attend the query.
    Please, anyone can help me?! It's a little bit urgent.
    Thanks,
    Katia.

    Hi Katia,
    I'll bet the problem lies with the characters you're using to escape the LIKE clause. You're using the ones that Access likes to see, but that's not necessarily what's built into the JDBC-ODBC driver class.
    You can find out what the correct escape wildcard characters are from the java.sql.DatabaseMetaData.getSearchStringEscape() method. It'll tell you what to use in the LIKE clause.
    I'm not 100% sure about your code. It doesn't use query1 anywhere. I'd do this:
    String query = "SELECT name, birthday FROM client WHERE birthday LIKE ? ORDER BY birthday ASC";
    PreparedStatement statement = connection.createStatement(query);
    String escape = connection.getMetaData().getSearchStringEscape();
    String test = escape + '/' + pMonth + '/' + escape;
    statement.setString(1, test);
    ResultSet rs = statement.executeQuery();
    while (rs.hasNext())
    // load your data into a data structure to pass back.
    rs.close();
    statement.close();Let me know if that works. - MOD

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • Trouble with Select tool in Acrobat 9

    When I try to make a selection in a .pdf, the selection box is randomly sized and placed.  For example, I select an area in the middle of the page, but when I let go of the mouse the selection box reduces in size and moves up/down the page.  I am selecting an area with graphics, no text.  This does not happen with all my .pdf documents, only certain ones that have been created within certain programs (e.g., ArcGIS 9.3 and geoPDF's). 
    The Snapshot tool works fine, but the resolution of the selection is much poorer than what I get with the Selection tool after I paste the selection into a Word document. 
    Is there a way to fix this, or change the settings on the Snapshot tool for better resolution so that I can use that tool instead?
    Thanks in advance for your help.

    I suspect that's not the problem, as I have no trouble selecting an area of any size I wish of images/objects most of the time.  The Select tool, at least in Acrobat 9, allows you to do this.

  • I M HAVING TROUBLE WITH MY ILLUSTRATOR. mY TEXT IS NOT GETTING SELECTED

    I M HAVING TROUBLE WITH MY ILLUSTRATOR. mY TEXT IS NOT GETTING SELECTED

    supd,
    By the sound of it, ti could be View>Show Edges or View>Show Bounding Box,
    or it could be locked object(s)/Layer(s),
    or the text could be hidden within a Clipping mask or something.
    Have you tried (Alt/Option) selecting with the Direct Selection Tool?
    Have you looked into the relevant expanded Layer(s) in the Layers palette?
    What happens if you Select>Object>Text Objects?

  • Since installing the new OS i am having troubles with different appliction icons showing up on my main page twice (upper left corner), and not allowng me to select certain ones (app store specifically).   Anyone else having this issue?

    Help - anyone else out there having trouble with the new OS system on their ipad 2?    I am not getting mutliple copies of several apps ont he main page.  They are "collecting: in a pike int he upper left corner and the original application icon is no lobger working.    I have tried a hard sync, and that didn't help.

    It should only be able to have one copy of an app on the iPad. Have you tried a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    Do all the apps work ? In the past a few people have taken a screen shot of their iPad screen and that has then become their background picture - so some of the 'app's may actually be on your wallpaper picture and not actual apps. Have you tried changing the wallpaper to see if that makes any difference ?

  • Trouble with OR in where clause

    Hello,
    I'm having trouble with execution speed. The problem seems to be with using OR in my where clause.
    Here's the meat of the function where i_pledge_number is an input parm:
    BEGIN
    SELECT /*+ INDEX (pp) */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM
    primary_pledge pp
    WHERE
    -- Get total if multiple allocations
    pp.prim_pledge_number IN
    (SELECT pc.pledge_number
    FROM pledge_codes pc
    WHERE pc.pledge_code_type = 'M'
    AND pc.pledge_code = 'AC'
    AND lpad(pc.pledge_comment,10,'0') = i_pledge_number)
    -- Get total if single allocation
    OR pp.prim_pledge_number = i_pledge_number;
    RETURN return_amount;
    END;
    If I comment out either half of the OR statement (either the subquery or the pp.prim_pledge_number = i_pledge_number half) the function returns a value in .02 seconds. If I leave the OR in, it takes 2.764 seconds to execute?? Can someone please show me a better way (faster) to do this? I tried using nvl() around the subquery but couldn't get it to compile.
    Thanks

    These things are difficult to diagnose remotely, but here is something you can try....
    SELECT */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM   primary_pledge pp
    WHERE  pp.prim_pledge_number IN (SELECT pc.pledge_number
                                     FROM pledge_codes pc
                                     WHERE pc.pledge_code_type = 'M'
                                     AND pc.pledge_code = 'AC'
                                     AND lpad(pc.pledge_comment,10,'0') = i_pledge_number
    UNION ALL
    SELECT i_pledge_number FROM dual)
       RETURN return_amount;
    END;If that doesn't do anything (and it might well not) there are a large number of different ways we can recast this query. To save us further guessing please give us more details: execution plans, database version number, volumetrics.
    Cheers, APC

  • (Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.

    Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
    I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
    Let me know if you know why this is happening.

    With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
    Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
    While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
    I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
    You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
    Something you can try:
    System Preferences -> Network
    Gear icon on the bottom left, next to the [+] [-] icons.
    Select *Set Service Order...*
    Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
    NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to.

  • Trouble with 3rd party VST installs for Garageband, can't find instruments

    Hi,
    I am having trouble with Audio Units for Garageband when installing 3rd party software, VSTs, loops, instruments. I have more issues with Logic Pro. I am hoping that it is the same underlying issue and that I am just missing something. I have the manuals (not great for troubleshooting). I am confused with some installs use User Library and others use the Computer Library. I do go to the mfgs sites for updates. The installs sometimes work as standalones but I don't see ALL of the components of the software in say Garageband or Logic. Mostly, I am missing the "instruments" and "loops" that I want to access within the DAW. Some examples:
    • Here is some of the software I am talking about:  East West sample libraries (Play and Native Instruments); Vienna Symphonic librarires; Sylenth1 (just last night); Sample Tank 2 and Total Workstation 2 from IK Multimedia and others.
    • In GB I see the Audio Units for Vienna, Play, Sylenth, some of the IK Multimedia but NOT any instruments when I go to the "Sound Generator" -- I seem to be missing the instruments and loops. I see less AUs in Logic Pro. Some of these are VST instruments.
    • Can I just drag-drop samples to the library folders to fix this?
    • The plug-ins do not seem to work (though Sylenth1 worked for a single sound). When there is a standalone app (as in Sample Tank), I finally got the "sounds" to be reinstalled and loaded, those sounds/samples don't show up in any DAW.
    • When and if the sounds/loops/samples show up in GB's "Instruments" section will I be able to tell that they belong to that particular software or library?
    Thanks in advance.
    John

    Found the answer myself, it was simple:
    • Select the Track
    • Show the Instrument (info area)
    • Click on Edit
    • Click on the "Sound Generator" pop up field.
    • At the bottom of the pop-up list, select from the Audio Units that you have installed. This is where you see "Sample Tank 2, Vienna Instruments..."
    • NEXT -- IMPORTANT:   CLICK ON THE PICTURE next to the Sound Generator pop-up field.The AU unit loads up, the interface pops up, you load up the instruments in this AU Unit. You do NOT see the sounds from the AU unit in the normal Apple instrument list.
    This was not intuitive but once you know it, fairly simple.
    Still, the devil is in the details -- more questions on the way.

  • IMessage trouble with two iPhones and one Apple ID

    Hi,
    I'm having trouble with iMessage after updating both of my iPhones to iOS 6 and not being able to use iMessage with one of the phones.
    Some background:
    -I have two iPhones, one on AT&T in the U.S., and one on NTT DoCoMo in Japan, both with separate phone numbers, using the same Apple ID.
    -The AT&T iPhone is a 4, the NTT is an unlocked 4S.
    On my 4 (AT&T), on iMessage, I have the option to send/receive as my U.S. phone number and my Apple ID. Works just like before updating.
    On my 4S (NTT), on iMessage, before I updated, I was able to send/receive using my Japanese number and Apple ID. After updating, I have the option to send/receive using my U.S. number and Apple ID. My Japanese number is greyed out and I cannot select it. When I turn on iMessage, it says "Waiting for activation..." and does not do anything. Turning iMessage off and on, some times I get an error message staying that activation cannot be completed.
    I have rebooted the phone multiple times, turned on/off iMessage and FaceTime, turned the Set Date & Time Automatically option on/off, and reset Network settings several times. Nothing works; iMessage will not activate on my NTT 4S. Please help!

    Finally resolved this issue after months of off and on troubleshooting.
    I have no idea exactly which steps "fixed" the issue, but here's what I did. None of the basic troubleshooting steps that are on here worked for me, and this is including restoring both phones in iTunes as a "last resort" step that two Apple technical service representatives suggested.
    I found a post on here from user "tungddao" who suggested:
    "Turn on iMessage then make a phone call to : 011+445773142076
                 With Facetime & Siri: 011+447786205094"
    I called both numbers with my NTT 4S, and both numbers hung up right away. I also texted both numbers, and the FaceTime one went through, while the iMessage number did not. I then checked my SMS blocking settings with NTT. There were no blocks, but I reset the settings to "unblock all" anyway.
    I was able to activate iMessage and FaceTime with my Apple ID and my NTT phone number. Halfway there.
    I then turned on my ATT 4, and while I could send/receive using my Apple ID and NTT phone number, the ATT number was greyed out, which was the opposite of what had happened before, when I could use the ATT number, but not the NTT one. On my NTT 4S, I could select my ATT number, but it was stuck on "verifying" for days, and I knew it wouldn't go through.
    So, I signed out of my Apple ID on iMessage and FaceTime on my ATT 4, and turned both services off. I turned on data roaming, and turned off WiFi. *This step was key to activating both services, as they would not activate over WiFi for some reason.
    I turned on iMessage and FaceTime without signing in to my Apple ID just yet. They both activated successfully, and then I signed into my Apple ID on both services, and from then on, I can use both numbers and my Apple ID on both phones! Finally!
    These are my current options:
    Phone 1 (4S on NTT): Phone 1's #, Phone 2's #, Apple ID
    Phone 2 (4 on ATT, roaming here in Japan on Softbank): Phone 2's #, Phone 1's #, Apple ID
    Hope this helps someone out there, as this issue was real frustrating for me.

  • Trouble with my Apple ID on multiple devices

    I am having trouble with my Apple ID when downloading app updates.  I go to update my Apps, but the Apple ID for a seperate iPod, that I also sync with this computer, is what appears when the password is requested.  I checked the account in Settings > Store and it is the correct one.  But everytime I attempt to update my Apps, it has the iPod's Apple ID, which is my father's Apple ID. 
    In short, when I try to update an app on my iPhone, my Apple ID is not displayed, but my father's iPod Apple ID is displayed with a request for the password.  I am not sure what I am doing wrong, but I would appreciate your assistance. 

    Ok, so you want to remove data (contacts, bookmarks, calendar etc) from other users from your iCloud/Apple ID?
    If you want to use your ID for your family because it is the account everybody uses to buy stuff then you only need to ensure that your apple ID is set up in the store (settings-store) and then the users of each device and put their own apple ID in icloud/message/facetime/etc.
    To set up your device, in my opinion, it is best to back up to itunes, and then plug your new device into itunes and "set up as ..." and select the backup from your device.  This will import all your data/settings and your new device will be set up just like your old one.
    I am not certain about using the same payment method for more than one account. 

  • I have a trouble, with lion my finder doesn't work, i can't open any window

    i have a trouble, with lion my finder doesn't work, i can't open any window

    Hi there are various threads here for this issue
    this one being the most extensive
    https://discussions.apple.com/thread/3191263?start=0&tstart=0
    First step is re-start the finder
    1. Press command-option-esc simultaneously
    2. Select Finder
    3. Click on re-start
    Then according to the above link, several people tried different things.
    Try out what you find in above thread
    Cheers

Maybe you are looking for

  • Officejet Pro L7590 linefeed?

    Hi all, I have been tasked the job of servicing a printer for a family member as the printer seems to have a strange problem regarding linefeed / black print head. Please find a scanned pdf : http://dl.dropbox.com/u/15814094/scan0001.pdf The problem

  • My macbook is frozen but I can't turn it off because I have many unsaved files

    I was watching a movie then it froze so I tried to press escape but the I got the rainbow wheel. When I closed the lid the apple loga was still glowing, and the sound was still playing. I am a studdent and have many unsaved files on it please help!!!

  • Internet access works from one jack only

    I recently moved to a new apartment that has three phone jacks, the phone works fine on all three but my router will work only from the jack where the main feed comes into my apartment. I have tried different cables, rebooting, unplugging, etc. Do I

  • Can a signed applet run classes from disk?

    Hi all, I have a signed applet jar and a signed jar file somewhere on disk (I can ensure the jar file is available on client's machine before i run the applet). My applet doesn't let me have file io access from the classes in the jar file on disk. It

  • Oracle 10g client cd

    Hi Is there any way we can install only oracle 10g client only as the same way we installing oracle 9i client