HTMLDB trimming - when and why?

Hi, I recentrly found that I couldn't delete one row that I entered within my htmldb app.
It turned out that when I was inserting this row I've entered a value (varchar2) beginning with space. However on displaying the space was trimmed. And my delete process did not even fail (It gave something like "Process concluded successfully!") which was a pure lie. :-)
The proces is "DELETE FROM MYTABLE WHERE MYFIELD = :P99_MYITEM";
I am using version 1.6
Please tell me is this a bug and why am forced to use trim on every insert process.
Please don't tell me to use numeric ID for a key because am not the designer of this table.
If there is an automatic trim, why isn't it used when the value is inserted or why is this trim used at all if this space is part of the value?
10x.

Sounds like this has very little to do with HTMLDB. The VARCHAR2 datatype will contain exactly what you put in it (if you insert a value with a leading space, that's what you'll get). Also, your delete did not really fail (which would indicate a error of some kind), it merely resulted in zero rows deleted.
There is no automatic trim, but you can code this functionality into a trigger or stored procedure.

Similar Messages

  • When and Why do we need to build a CUSTOM CUBE

    Hello Experts, Could some please explain with a scenerio ..
    "When and Why do we need to build a CUSTOM CUBE"
    Thanks in advance
    Bhalout

    When and Why:
    Custom cube should be think of when the constent cube is either not suitable nor available for a subject area.
    If there is a content cube and but does not meet your reporting needs, then the better thing will be to adopt the content one and make changes.
    Ravi Thothadri

  • When and Why Do We Need to Create 2 Diff iTunes Libraries?

    Hi,
    When and Why Do We Need to Create 2 Diff iTunes Libraries?
    Thanks.
    Ed

    There's no fast rule sayng you must, and I suspect most people only use one.
    You might want to set up a second library if your first one is so huge that it is slow to operate.  Split your media. For example, I don't listen to classical and rock music at the same time and could restart iTunes ffrom a different library when the time came to switch.
    I have a few extra libraries. One's for music I organized for a special occasion but don't really listen to myself and don't want it cluttering mine. I also have a special library for my mp3 player (not an Apple model) with its own set of files which match some in my main library but they are tagged differently to be compatible with the player's quirks.
    I could also see having a different library for files on an external drive if you have some on your internal drive too.  You might, for example, have a bunch of movie files on an external drive that you don't normally need to have plugged in all the time and don't want iTunes giving you a bunch of exclamation marks if are using it to play your music media on your internal drive.

  • When and why "Never Shared" ??

    when and why we use "Never Shared" in Essbase ??
    Give an real life example which explore it detail ??
    Thanks in advance ....

    Here is an example of lots of reading for you :- Never Share memer
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Vectors gone?  When and why?

    I have read in a couple of posts that Vectors are "legacy" and may not be around forever. Can anyone shed light on the when and why of this? I am relatively new to JAVA programming but I do have a bunch of applications out there that use Vectors. I personally found them very easy to work with.
    Thoughts?

    Wow! I can't wait for Java 2.0! (Please read heavy sarcasm.)
    Speaking of rumors, let's not start spreading any rumors that the Java group at Sun has actually started to talk about -- let alone publicly announced -- that a 2.0 version is in the works; 1.5 sounds right to me.
    I know that you can get almost the same functionality out of a List that is returned from the Collections.synchronizedList(List) method as you can out of a Vector, but Vector is by no means a deprecated class. (We should try to be careful about the casual use of meaning-laden words.) pengjuc is right that a lot of Swing (and non-Swing) classes such as JTable rely on Vector; the mere rewrite to replace all the Vectors with ArrayLists would probably require a Java release all on its own (and whose to say that ArrayLists are really all that, anyway?). Moreover, Vector is part of the public API of many classes and to deprecate it would throw a lot of developers into a tizzy because it would potentially break the ability of their applications to upgrade to a new version of Java. There is nothing inherently wrong with Vector -- it performs as advertised -- and pengjuc is right again that the performance differentials are minute over small object collections.
    In response, again, to dubwai, there's a difference between using Vectors as a developer and having them included in the J2SDK. If you don't like them don't use them, and if you don't like them in other classes, rewrite those classes to your taste. Personally, I think you either have to take what you're given, do it yourself, or get involved in the process.
    Good luck, All!
    Shaun

  • When and why (how) use the exit RSR00003 (EXIT_SAPLRRS2_001)

    Boa tarde, expert´s ...
    I tried to find documentation about exit RSR00003, but I didn´t found ...
    I want know when and why a have to use this exit ...
    Muito obrigado,

    Hello,
    The exit is only for Internal SAP use this is why you don't find any documentation for it. So you don't need
    to use it, see the information in the SAP note 153562.
    Best Regards,
    Des

  • When and Why Did Apple Drop The 160GB Classic Ipod

    Hi
    I was going to go and finally buy a 160GB Ipod tomrrow.I see they don't even list it anymore on Apples site and Future-shop doesn't even list it on the site.
    They only make a 120GB Now
    When Did they Drop this and why???
    Also Do any stores still have them in Stock???
    I won't be spending the money on only a 120GB if thats all they make now
    I've had my Ipod Mini 4GB since 2005 and thought it was time for a upgrade.
    Please do tell me if Apple still makes the 160GB Ipod
    thanks

    Apple has discontinued the 160GB. You can buy one online still, but not from Apple. Or buy a used one off Craig's List.
    P.S. Actually Apple is still selling refurbished 160GB on it's site, if you want to go that route. I also found some new ones on Amazon. Buy.com may have some too.
    Message was edited by: iPodDiva

  • When and why did they decide to lobotomize Siri

    Siri used to amuse me when I was bored. She sang, she told jokes. It was fun to look for the easter eggs. not anymore. Which doofus came up with this plan and why.

    None of us here would know, we are users like you. If you would like to provide feedback to Apple about your concerns, you may do so at www.apple.com/feedback and click on the appropriate link.

  • Which partition type option i use and when and why?

    hi
    i really confused with the types of partition available with essbase, i really want to know which partitioning option i use and in which situation and why should i use that partion type.
    ok

    Hi This kinda question is already answered in this forum many times.
    See the below threads, you will get a better idea of using partitions.
    Re: using partition in real time
    Re: Partition between Essbase and Hyperion Planning Cube
    Re: Transparent Partition - REQUEST HELP
    Re: partition aso to bso error

  • When and why do i have to use a Network-Path?

    Hello,
    i'm wondering when i why i have to use a Network-Path in KM.
    I'm able to connect to a File-System Repository, even if i have no Network-Path defined.
    - both run on W2K Server
    - EP runs on host EP (not an Domain-member)
    - Filesystem is provided by host FS (Domain-member)
    - EP is started with the default local-user SAPServiceEP6
    - on the FS host, i have defined also a local-user SAPServiceEP6 (because EP always wants to logon with these credentials, i have checked this in the windows securitylog of host FS)
    - no network-path defined
    So regarding the fact, that everything is working, can anybody tell me when i have to use a Network-Path?
    Thanks in advance
    Frank

    Hi,
    for example if you want to access a share that only access is granted for a given user. The idea is having a superuser with privileges on the other computer to do things like checking ACLS.
    Another example, how can you access windows shares when running the portal in Unix? Using a network path.
    REgards,
    Miguel

  • When and why do we use MTL_TRANSACTION_LOTS_INTERFACE in WOLC completions?

    Hi,
    While performing WOLC (Work OrderLess Completions) for Assembly completions, why do we check for records in MTL_TRANSACTION_LOTS_INTERFACE?
    For example, I'm performing WOLC for one assembly item for which we have lot-controlled components.
    Is it necessary for the records to exist in MTL_TRANSACTION_LOTS_INTERFACE ?
    Thanks in advance.

    Dear Vikash and dear Javier,
    Thanks for your help. I am still confused with these sales area. But what you say is:
    - We can create a sold to party without sales area in CRM and it could be replicated into ISU as a contract partner with an SD customer.
    - To replicate the service contract into ISU, I need to assign to this document a sales area. Is it necessary because it will be replicated in ISU as an utilities contract and it's not an SD document? If the sales area are required, i will have to set up these sales area in the organizational structure (PPOMA_CRM). In this case, when I will create the service contract, I will have to determine the correct organisational structure based to some custom/specific rules?
    Sorry for these riddiculous questions but it's hard for me to understand this sales area concept.
    Thanks again,
    Stephanie

  • When and why do we need the object  'dimension' created by OWB

    Hi
    When we generate code for a dimension along with the ddl for the table
    a dimension object with a post fix of _DIM is being generated. Do we need to
    deploy this. Why do we require this and What is its impotance.
    May be this is a basic doubt but will be thanfull if someone can tell me its importance
    Thanks
    Nanda Kishore

    Nanda,
    A dimension object has built in definitions of a parent-child relationship between pairs of column sets ("levels" of the dimension hyerarchy). The optimizer uses these relationships with materialized views to perform query rewrite and thus makes the queries more efficient.
    For more details, please refer to the Oracle data warehousing guide:
    http://tahiti.oracle.com/pls/db92/db92.drilldown?levelnum=2&toplevel=a96520&method=FULL&chapters=0&book=&wildcards=1&preference=&expand_all=&verb=&word=dimension#a96520
    Regards:
    Igor

  • Rethrowing the same exception - how, when and why?

    Hi,
    I have just gone through the Exception Handling chapter and found don't understand when should I use the rethrowing of same exception?
    e.g.
    catch(NullPointerException e) {
    e.printStackTrace();
    throw e;
    or
    catch(NullPointerException e) {
    e.printStackTrace();
    Throwable changedE = e.fillInStackTrace();
    throw changedE;
    I am not sure how, why and when should I use this syntax?
    Any advice and a given example is much appreciated.
    Thanks in advance.
    gogo

    Think about the information you would want when this exception occurs; if you rethrow the exception then the entire stack trace will be available which will allow you to find the root of the problem more easily than if you have filled in the stack trace at an intermediate point in the call graph. Never throw away information in an exception.
    Note also that fillInStackTrace() does not actually create a new instance of the Throwable. It just returns the same instance but with it's stack trace modified.
    There are two other points to note about your example:
    First, catching NullPointerExceptions or any subclass of RuntimeException (except for the curseworthy NumberFormatException) is generally a bad thing to do. RuntimeExceptions usually indicate that something is wrong with your code or with the VM and catching them is just masking the real problem. They're not like checked exceptions (subclasses of Exception that are not RuntimeExceptions) which can occur because of something 'unexpected' happening in the environment which has nothing to do with bad code and for which recovery from the problem is often possible.
    Second, consider whether you really want to catch an Exception anyway. Exceptions should only be caught when:
    a) you want to try to recover from the problem i.e. you can handle the exception
    b) you want to transform the exception into something more meaningful to client code, i.e. if the exception comes from deep in some library code and you can't handle the exception but the actual class of exception won't be meaningful to the client code, then you might want to create your own Exception subclass and throw an instance of that in place of the original exception. If you do this, then you should chain the original exception so that you still preserve all the stack information and the original message (this is why all Throwables in JDK 1.4 have constructors that take a Throwable 'cause' parameter)
    Lance

  • When and why did they get rid of the emac?

    When did they get rid of it? What for?

    It stopped being visible on the main retail store upon the release of the latest iMacs. I have no answer to why.
    You can always find used and refurbished eMacs. And they may also still be available on educational stores. Since I'm not a college student or k-college educator, I can't check those stores to tell for certain. Remember, when it was initially released it was only available on educational stores.
    Disclaimer: Reference to links I make to my Macmaps.com website are a for your information only type reference. I do not get any profit from this page, and it is open to the public.

  • When and Why we use BAPI, RFC and IDOC.. in XI

    Hi,
            Could any one tell me why we some time use BAPI, and some times use RFC and some times use IDOC while communicating with the SAP systems.
    Is there any differences while using the same.
    regards,
    Sunil

    Sunil,
    RFC and BAPI are same as per the technical point of view both are remote enabled function module..
    BAPI is provided by SAP while RFC is created by a developer..
    IDoc is another proprietary technology of SAP for exchnaging messages .
    Difference lies here :
    1. For RFC/BAPI you need to use RFc adapter
    while for IDoc you need to use IDoc adapter..
    2. For RFC you need to create RFC destinations not for Idoc
    3. For Idoc you also need to manage Partners Profiles..inn R3..
    These are few differences in using RFC/BAPI and Idoc...not the only ones..
    Feel free for any clarification..
    Regards,

Maybe you are looking for

  • Mail Crashing on Open

    I can't open mail, it immediately crashes. I did some cleaning up of my iCal yesterday which may have something to do with it. I've deleted all the "to-do" items I created. I've synced back and forth and switched syncing to manual. I'm about ready to

  • Targeting a movie clip inside a movie clip inside another movie clip with a twist

    Thanks to ned. Im able to link to a movieclip inside a movieclip. Unfortunately one of the movieclips now are a scrollbar and scroll.  Now the actionscript isnt working? Has anyone wany ideas? Please cal.onPress = function() { gotoAndPlay(2); message

  • Cannot connect to SQL server in ODI

    Hi, I am new to ODI & Im currently trying to access SQL server DB using ODI. I have downloaded the sql server jdbc driver 2.0 & placed the sqljdbc4.jar in driver folder of ODI_HOME. On creating the data server & testing connection, it says 'Successfu

  • Crystal Reports version message problem

    Hi, I am getting following message while opening the reports in CR XI. "This report was created with a version of Crystal Reports which is later than the version you are running. Some features used in the report may not be supported. " These reports

  • I need to use Windows Small Business Server.  Any ideas?

    I need Internet Explorer in order to use Windows Small Business Server.  Since that isn't available for Mac are there any other options?