Importing excel files - problem with single quote

When importing excel files using 1.5, I can't get data with single quotes (') imported.
When I run the insert statement given in SQLPlus I get "ORA-01756: quoted string not properly terminated", which is different than the error that SQL Developer gives me (see below).
Also, I have a numeric value shown without a thousands comma-separator in the XLS file that I'm trying to load into a varchar2 field. But, the insert statements have added a thousands comma-separator which I don't want.
REM Error starting at line 1 in command:
REM INSERT INTO table (ID, NAME, CODE)
REM VALUES (2427407, 'Ed-u-care Children's Center', '73,000');
REM Error at Command Line:2 Column:37
REM Error report:
REM SQL Error: ORA-00917: missing comma
REM 00917. 00000 - "missing comma"
REM *Cause:   
REM *Action:
One last thing, TOAD gives a way to automap columns chosen from XLS to the columns in the database. It sure would be nice to have this functionality in SQL Developer.
Thanks,
Steve

Did you consider both to be bugs (i.e., single quote issue and thousands comma separator issue)?
Thanks

Similar Messages

  • Import Map file failes with single/Multiple Occurance

    Hi All,
    Using a file I mapped the source and target structures.. The source file has one multiple occurance node . so I used look up option in source table and mapped with target fields...saved the map..
    When I used the following XML file .. I used the same map created befoe... I see the Remote System fields are not failed to map to target structure.. How can I get rid of this issue....
    <Product>
    --<Name>Rajeev</Name>
    --<REMOTE_SYSTEM>
    <Z_MDM_REMOTE_SYSTEM>
           <Z_MDM_SYSTEM_NAME>Panaroma AW Customer ID</Z_MDM_SYSTEM_NAME>
         <Z_MDM_VALUE>600013</Z_MDM_VALUE>
         <Z_MDM_VALUE1>600011</Z_MDM_VALUE1>
         <Z_MDM_VALUE2>600012</Z_MDM_VALUE2>
    </Z_MDM_REMOTE_SYSTEM>
    --<REMOTE_SYSTEM>
    </Product>
    Using above I saved the map.. Its fine.. I am able to import data in to MDM..
    When the file has multiple values of remote system as shown below then field are unmapped... vice versa is also the same..
    <Product>
    --<Name>Rajeev</Name>
    --<REMOTE_SYSTEM>
    <Z_MDM_REMOTE_SYSTEM>
           <Z_MDM_SYSTEM_NAME>Panaroma AW Customer ID</Z_MDM_SYSTEM_NAME>
         <Z_MDM_VALUE>600013</Z_MDM_VALUE>
         <Z_MDM_VALUE1>600011</Z_MDM_VALUE1>
         <Z_MDM_VALUE2>600012</Z_MDM_VALUE2>
    </Z_MDM_REMOTE_SYSTEM>
    <Z_MDM_REMOTE_SYSTEM>
           <Z_MDM_SYSTEM_NAME>Panaroma AW Customer ID</Z_MDM_SYSTEM_NAME>
         <Z_MDM_VALUE>600013</Z_MDM_VALUE>
         <Z_MDM_VALUE1>600011</Z_MDM_VALUE1>
         <Z_MDM_VALUE2>600012</Z_MDM_VALUE2>
    </Z_MDM_REMOTE_SYSTEM>
    --<REMOTE_SYSTEM>
    </Product>
    Do I need to create a seperate map for multiple iteration and single occurance..OR missing some thing? Please advice..
    Thanks
    Rajeev

    HI Ravi,
    May be I took the wrong example..
    I am not talking about remote systems... I am talking about XML source file.. If the XML source file consist of single occurance of any qualifier table then those qualifier table fields are not mapping.. IF I used the base file as multiple occurance Qualifier table....
    In the same way if I use base file as single occurance of Qualifer table .. Qualifier Fields are not getting mapped if the source file is single occurance..
    Suppose :If I use the base file as this and save the map.. I am able to import files whcih are single occurance of EMAIL...
    Fields are not getting mapped if the EMAIL occurnace is multiple.....
    <Product>
    --<Name>Rajeev</Name>
    --<EMAIL>
    <Z_MDM_EMAIL>
    <ID>ABC_yahocom</ID>
    <TYPE>TEMP</TYPE>
    </Z_MDM_EMAIL>
    --</EMAIL>
    </Product>
    In the same way: If I use the following XMl as base and create a map and save it.. Able to import files which had email occurance multiple.. Unable to import data and the fields are not mapped ......
    <Product>
    --<Name>Rajeev</Name>
    --<EMAIL>
    <Z_MDM_EMAIL>
    <Z_MDM_EMAIL>
    <ID>ABC_yahocom</ID>
    <TYPE>TEMP</TYPE>
    </Z_MDM_EMAIL>
    <Z_MDM_EMAIL>
    <ID>CDE_yahocom</ID>
    <TYPE>TEMP</TYPE>
    </Z_MDM_EMAIL>
    --</EMAIL>
    </Product>
    Please advise.. Thanks Rajeev.

  • Upload Excel File : Problem with Filter

    Hi Experts,
    by using "TMP_GUI_FILE_OPEN_DIALOG" with these parameters:
         window_title      = 'Please select an Excel File'
         default_extension = '*.xls'
         file_filter       = '*.xls'
         multiselection    = ' '
         init_directory    = 'C:\temp'
    it doesn't show any file the first time we call the Function, we have to close the window and then restart the Function Then it show all Fileformat, I just want to see .XLSX files.
    Any idea?
    Regards,
    David

    I found the solution:
    Initialisierung
      CONCATENATE 'Alle-Dateien(.)|.|'
                  'Word-Dateien(.doc)|.doc|'
                  'Bild-Dateien(.gif)|.gif|'
                  'Bild-Dateien(.jpg)|.jpg|'
                  'Mail-Dateien(.msg)|.msg|'
                  'PDF-Dateien(.pdf)|.pdf|'
                  'Bild-Dateien(.tif)|.tif|'
                  'Text-Dateien(.txt)|.txt|'
                  'Excel-Dateien(.xls)|.xls'
             INTO filter.
    Datei abfragen
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Datei auswählen'
          file_filter       = filter
          initial_directory = 'C:'
        CHANGING
          file_table        = i_file[]
          rc                = rcode
        EXCEPTIONS
          OTHERS            = 1.
    Regards,
    David

  • Problem with single quote around ANYINTERACT

    CREATE TABLE JUNK
    as SELECT s.survey_id,s.shape,s.original_depth
    FROM bathyuser.sounding s,m_covr r
    WHERE SDO_GEOM.RELATE (s.shape, 'ANYINTERACT', R.geom, 0.5) = 'TRUE'
    AND R.DSNM=CNT.DSNM
    and
    s.SURVEY_ID in
    (SELECT unique s.survey_id FROM header s, m_covr r
    WHERE SDO_GEOM.RELATE (s.shape, 'ANYINTERACT', r.geom, 0.5) = 'TRUE'
    AND DSNM=CNT.DSNM)';
    This above SQL works fine in SQL prompt. But when I put it together in PL/SQL it gives me this error :
    WHERE SDO_GEOM.RELATE (s.shape, 'ANYINTERACT', R.geom, 0.5) = 'TRUE'
    ERROR at line 17:
    ORA-06550: line 17, column 39:
    PLS-00103: Encountered the symbol "ANYINTERACT" when expecting one of the
    following:
    * & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
    Could someone help me fix this error. I know I have to try it with "EXECUTE IMMEDIATE" command, but I'm having problem with "||" (concatinate).
    Thanks so much
    Cuong

    This is how you go about debugging execute immediate statements. I am assuming that you fixed the first problem as marias suggested and cam up with something like this. Note, I changed the table in your surso to dual since I do not have your tables, but the effect is the same. I changed the EXECUTE IMMEDIATE to DBMS_OUTPUT.Put_Line so you can actually see what you are trying to execute. I also added some carriage returns to make the formatting a littel easier to see. This is what I got:
    SQL> DECLARE
      2     statement varchar2(1000);
      3  CURSOR C_DSNM5 IS
      4     SELECT dummy dsnm FROM dual;
      5  BEGIN
      6     FOR CNT IN C_DSNM5 LOOP
      7        STATEMENT := 'CREATE TABLE JUNK'||
      8                     ' AS SELECT s.survey_id,s.shape,s.original_depth'||CHR(10)||
      9                     ' FROM bathyuser.sounding s,m_covr r '||CHR(10)||
    10                     'WHERE SDO_GEOM.RELATE (s.shape, '||
    11                     '''ANYINTERACT'''||
    12                     ', R.geom, 0.5) = '||'''TRUE'''||CHR(10)||
    13                     ' AND R.DSNM = CNT.DSNM '||CHR(10)||
    14                     ' AND s.SURVEY_ID IN '||
    15                     ' (SELECT UNIQUE s.survey_id FROM HEADER s, m_covr r'||CHR(10)||
    16                     ' WHERE SDO_GEOM.RELATE (s.shape, '||
    17                     '''ANYINTERACT'''||
    18                     ', r.geom, 0.5) = '||
    19                     '''TRUE'''||CHR(10)||
    20                     ' AND R.DSNM = '||CNT.DSNM||' )';
    21        DBMS_OUTPUT.Put_Line (statement);
    22     END LOOP;
    23  END;
    24  /
    CREATE TABLE JUNK AS SELECT s.survey_id,s.shape,s.original_depth
    FROM bathyuser.sounding s,m_covr r
    WHERE SDO_GEOM.RELATE (s.shape, 'ANYINTERACT', R.geom, 0.5) = 'TRUE'
    AND R.DSNM = CNT.DSNM
    AND s.SURVEY_ID IN  (SELECT UNIQUE s.survey_id FROM HEADER s, m_covr r
    WHERE SDO_GEOM.RELATE (s.shape, 'ANYINTERACT', r.geom, 0.5) = 'TRUE'
    AND R.DSNM = X )
    PL/SQL procedure successfully completed.You have at least two issues with this CREATE TABLE statement. The last line needs to have the X (which came from dual) quoted since it is a string. You also still have a reference to CNT.DSNM, unless you fixed both occurences.
    Another major problem is that if your cursor will return more than one row, and by the structure of this I assume that it might, the on the second record you are going to get:
    ORA-00955: name is already used by an existing object.
    Although I see no reason why you need dynamic sql here, you really need to use bind variables whereever possible (everywhere you use a variable except ofr names of database objects. So, your procedure should look more like:
    DECLARE
       statement varchar2(1000);
       CURSOR C_DSNM5 IS
          SELECT distinct DSNM from M_COVR where dsnm like 'US5%';
    BEGIN
       FOR CNT IN C_DSNM5 LOOP
          STATEMENT := 'CREATE TABLE JUNK'||
                       ' AS SELECT s.survey_id,s.shape,s.original_depth'||
                       ' FROM bathyuser.sounding s,m_covr r '||
                       'WHERE SDO_GEOM.RELATE (s.shape, '||
                       '''ANYINTERACT'''||
                       ', R.geom, 0.5) = '||'''TRUE'''||
                       ' AND R.DSNM = :b1 '||
                       ' AND s.SURVEY_ID IN '||
                       ' (SELECT UNIQUE s.survey_id FROM HEADER s, m_covr r'||
                       ' WHERE SDO_GEOM.RELATE (s.shape, '||
                       '''ANYINTERACT'''||
                       ', r.geom, 0.5) = '||
                       '''TRUE'''||
                       ' AND R.DSNM = :b2 )';
          EXECUTE IMMEDIATE statement USING cnt.dsnm, cnt.dsnm
       END LOOP;
    END;But it is still very wrong.
    Perhaps if you can explain in words what you are trying to accomplish someone can provide a much better response.
    John

  • Problem with single quote when exporting insert statement

    Hi
    I'm using Oracle SQL Developer 2.1.1.64 on Ubuntu 10.04. I got some records which has single quote in it.
    For example,
    Let says Table '*TABLE_A*' has varchar2 column called '*COL_A*'.
    And there is only one record in the table and the value is:
    his friend's dog name is dog.
    When I export that table data to insert statement, i got this:
    Insert into TABLE_A (COL_A) VALUES ('his friend's dog name is dog.');
    As you can see friend's is wrong, it should be friend''s instead. (note the double single quotes).
    Anyone knows how to fix this please?

    Yes - that's a bug. But probably not what you're expecting.
    Mind you really can't use "normal" SQL on LOBs, because they're just too big to fit in the statements.
    You should export and import them through e.g. the DBMS_LOB package.
    I do remember some request on the SQL Developer Exchange to automate this, so go vote there to add weight for future implementation.
    So the bug is that the column's fields should all yield NULL inside the INSERTs.
    Regards,
    K.

  • Bridge Collection file / folder name single quote bug fix?

    Just starting using Bridge CS5 on WIndows 7.  Fresh install of OS and CS5.  Latest patches applied (4.0.5.11).
    After laboriously selecting 60+ files and creating a colelction, the collection showed zero items.
    I recreated the collection multiple times but same result.  This was supremely frustrating and a huge time waster for me (and I'm sure for others).
    Completely repeatable.
    Tracked this down to one of my folders having a single quote in its name.  This problem was documented back in 2010:
    http://forums.adobe.com/message/2936294
    I edited the collection file in notepad and replaced the single quote with %27.  Worked fine.
    But manually editting the collection file everytime I make a change to the collection or renaming my folder hierachry are not viable workarounds.
    Does anybody know if a fix was ever released for this?  What is Adobe's response to this? 
    It apparently is a regression (i.e. it was fixed in a pevious verision and now is back).
    This is a programming 101 bug (i.e. escaping special characters in file names). 
    This type of programing error is a real showstopper and really inexcuable, especially for how long it has been out there.
    Jeff

    Thanks for posting this problem on the photoshop feedback page.
    It's clear many of us have tripped on this issue and that it is time Adobe fixed this problem.
    To hedge our collective bets, I also filed a "bug report" using this web page:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    It interesting to note that I did not find a bug report form for Bridge - the site just offers a redirect to the general feedback form on Photoshop.  But there was a bug report form for Premier Pro (a program they obviously care more about).  So I filed this issue as an official bug against Premier Pro thinking it may get greater visiability.  What follows is what I submitted.  If I hear back from the development team I'll let this thread know.
    Jeff
    ******BUG******
    File names / folders with single quotes (e.g., Jeff's Photos) are not properly escaped in the collection xml file created by Bridge which is used to manage assets in Photoshop, Premier Pro, etc. The single quote, which is a valid filename symbol in Windows, should be converted to %27 in the xml file but is left "as is" which prematurely terminates filename / folder strings.  The net effect varies based on the operation being performed, but it is typically a silent error (i.e. the user is given no warning anything is wrong) and can result in catastrophic loss of critical assets.
    It is simple to repro: just create a folder with a single quote in the name, populate it with content files, and create a collection.  The next time you use it, the collection shows up as 0 entries.
    The bug (which appears to be a regression) results in many users losing critical asset files and wasting huge amounts of time debugging this issue which was reported almost a year ago.  The forums have many threads on this problem - see my recent entry for an example:
    http://forums.adobe.com/message/4112499#4112499
    The bug is a trap that directly erodes customer confidence and satisfaction with Adobe's whole product line.  Bridge is billed as hub that is supposed to tie all products together - but it cannot be trusted.  Critical assets and time are lost.  This is trivial bug to fix and many customers are outraged that Adobe has done nothing to fix it or warn users about it - especially since this is in your professional line of products that cost over a thousand dollars.  Please escalate this fix immediately. 
    As a courtesy, please let me know this bug report was escalated and an ETA when a fix may become available.
    Thank you

  • Dynamic SQL and Data with Single Quotes in it.

    Hi There,
    I have a problem in that I am using dynamic SQL and it happens that one of the columns does contain single quotes (') in it as part of the data. This causes the resultant dynamic SQL to get confused as the single quote that is part of the data is taken to mean end of sting, when in fact its part of the data. This leaves out a dangling single quote that was meant to enclose the string. Here is my dynamic SQL and the result of the parsed SQL that I have captured:
    ****Dynamic SQL*****
    l_sql:='select NOTE_TEMPLATE_ID '||
    'FROM TMP_NOTE_TEMPLATE_VALUES '||
    'where TRIM(LEGACY_NOTE_CODE)='''||trim(fp_note_code)||''' '||
    'and TRIM(DISPLAY_VALUE)='''||trim(fp_note_text)||''' ';
    execute immediate l_sql INTO l_note_template_id;
    Because the column DISPLAY_VALUE contains data with single quotes, the resultant SQL is:
    ******PARSED SQL************
    select NOTE_TEMPLATE_ID
    FROM TMP_NOTE_TEMPLATE_VALUES
    where TRIM(LEGACY_NOTE_CODE)='INQ' and TRIM(DISPLAY_VALUE)='Cont'd'
    And the problem lies with the single quote between teh characters t and d in the data field for DISPLAY_ITEM. How can I handle this?
    Many thanks,

    I have been reliably informed that if one doesn't enclose char/varchar2 data items in quotes, the right indices may not be usedI am into oracle for past 4 years and for the first time i am hearing this.
    Your reliable source is just wrong. Bind variables are variables that store your value and which are used in SQL. They are the proper way to use values in your SQL. By default all variables in PL/SQL is bind variable.
    When you can do some thing in just straight SQL just do it. Dynamic SQL does not make any sense to me here.
    Thanks,
    Karthick.

  • Are you Know function which import excel file

    Please let me know how I can import excel file my alv grid with all colours and all fields headers. etc..

    you can do this with OLE
    take a look at this https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c

  • IN operator with single quotes

    Hi All,
    I am having problem dealing with Single Quotes with IN operator. Below procedure will explain my problem:
    create or replace procedure sp_countemp
    p_empnames       in   varchar2
    is
    v_cnt            integer:=0;
    BEGIN
    select count(*) into v_cnt from emp where ename in (p_empnames);
    DBMS_OUTPUT.PUT_LINE(v_cnt);
    END;I will be getting p_empnames as 'ALLEN','SMITH'
    But I am not getting any records here.
    Thanks,
    Danish

    Hope this helps..
    DECLARE
      TYPE strarray IS TABLE OF VARCHAR2(100);
      p_empnames STRARRAY;
      v_tot INTEGER :=0;
      v_cnt INTEGER := 0;
    BEGIN
      p_empnames := strarray('Allen','Smith');
      FOR i IN p_empnames.FIRST .. p_empnames.LAST LOOP
          SELECT COUNT(*) INTO v_tot FROM emp WHERE ename = p_empnames(i);
          v_cnt := v_cnt + v_tot;
      END LOOP; 
      DBMS_OUTPUT.PUT_LINE('Count '||v_cnt);
    END;
    Count 2

  • Is it possible to import excel files automatically?

    Hi,
    I am able to import the excel file manually and the same map I used in port.. format as excel.. its automatic action.. When I place the file it getting picked but giving structural exception... the same file I can manaully process successfully by selecting the same file using type as excel instead of Port...
    When I select type as port, remote system .. when  I want to select port I can see the port which I defined in console but they are disabled.. wondering where I did wrong?? is it possible to import excel files automatcially??
    Thanks
    Rajeev

    Hi,
    Yes you understood corectly.. I am unable to import excel file automatically.. I created a new port with the map which I used manually of type excel... Before placing the file in the ready folder of this newly created port.. I tried to manually import using the port type... I see the port is disable to select.....
    If I place the fiile its throwing structural exception..... but the same file I am able to import using type as excel..
    After structural exception..I am able to select this exceptional port in import manager of type port.. manually it is successfull using the same map and same file which got structural error....
    In Console report says:
    Error: MS Access is not supported on this platform.
    Error: MS Excel is not supported on this platform.
    I am working on MDM 5.5.65.95 AND WINDOWS 7 64bit..
    Any inputs.
    Thanks
    Rajeev

  • Importing excel file into OBIEE 10.1.3.4

    Hi,
    I am trying to import excel file into OBIEE and would like to use it as a data source. Fro this, I have already created an excel file (using MS excel 2007) with some sample data and named the data ranges with in the excel sheet as well. and I have placed that file under C:\ drive directly. And then created DSN and made sure that it points to the excel file.
    When I go to Administration tool -> Import from Database -> seelct ODBS 3.5 and selected my DSN and clicked OK. Here I have not provided the user name and password (though I have provided the username/pwd as Administrator it is not taking).
    when I click ok, it is throwing the following error :
    nQSerror:16001 ODBC error state : IM006 code: 0 message: [Microsoft][ODBCDriver Manager] Driver's SQLSetConnectAttr failed. [nQSError: 16001]ODBC error state: S1000 code - 5015 message: [Microsoft][ODBC Excel Driver] External table is not in the expected format
    Pls help me in rectifying this error. Many thanks in advance.
    Thanks
    Edited by: 858747 on 25-Aug-2011 05:47
    Edited by: 858747 on 25-Aug-2011 05:48

    Hi, I am facing the same issue.
    I am using OBIEE 11g with MS Excel 2007 file as source. I have created ODBC Driver by selecting Microsoft excel driver.
    NQSAdminTool.log gives error:
    ODBC error state: S1000 code: -5015 message: [Microsoft][ODBC Excel Driver] External table is not in the expected format
    The Admin tool gives error: "Unable to connect database using connection pool", when I try to 'update row count' in Physical Layer.
    Any quick resolution to this?
    Many thanks in advance.
    Edited by: user1603699 on 25-Oct-2011 09:28

  • Adding hyperlinks to imported excel file cells

    Good Afternoon All,
    I am having trouble assigning hyperlinks and defining names to the individual cells of an imported excel file (import into Visio). Ideally, I would like to be able to hyperlink shapes in other Visio pages (of the same
    workbook) to individual cells of the imported excel file and vice versa.  Is there any way of doing this? 
    Please let me know if I can clarify.
    -Tom

    In a similar thread from a few days ago:
    Albert Geven wrote:
    > You can also download from the developer zone our excel (goop)
    >library.
    >search for philips and you'll find it.
    We've used this with good success for creating multiple worksheets. If you
    like goop, its great. It may be worth a look for you. It's at this link
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&42E12CDCDBD1C682
    8625699D004EEFA8&cat=9C6DF90777E5A78206256874000FA14E
    Spencer
    "Jeff - PPL" wrote in message
    news:[email protected]..
    > Is it possible to send data to two different worksheets in an excel
    > file? For example, I have raw data and then calculations from that
    > raw data. Right now I have the raw data being sent to the exc
    el file.
    > I would like to be able to send the calculation results to the same
    > file but a new worksheet. Is this possible?
    >
    > Thanks

  • Changing of the standard port 1521 and afterward problems with Single Sign

    System / Host Environment
    Operating System: HP-UX 11i, Existing Oracle RDBMS Vers. 9.2 x, Listener on standard port 1521
    9iAS System Architecture: 9iAS Infrastructure and Middle tier (AS Instance) on the same machine
    Problem Environment:
    -Before and during the installation of 9iAS infrastructure the Listener of the existing Oracle RDBMS was stopped
    -The installation of 9iAS Infrastructure (db: IASDB) Version 9.0.2.0 works well
    -Afterwards the port 1521 of IASDB changed to 1525. For a detail description of IASB port changing please refer to Doc. ID: 211 929.1 AFTER CHANGE 'IASDB' LISTENER PORT
    -The installation of Patch Set 2 (Common Patch 2703110) follows (9iAS is now up to Release 9.0.2.2).
    -The Installation of 9iAS Middle tier (AS Instance) Version 9.0.3 follows
    Problem description:
    -During the installation of 9iAS Middle tier problems with Single Sign On occurs.
    The reason of this problems seems a communication problem between the Single Sign On login sequence and the IASDB. After a reset of the port changing (back to the standard port 1521) the installation of 9iAS Middle tier works well.
    Through this incorrect and problematic behaviour we have some notes and questions:
    -Well at first the description of the port changing in Doc. ID: 211 929.1 seems us incomplete. Some configuration still carry on the standard port 1521 and not the knew value of the port 1525.
    -So we want to know all configuration files and parts where we have to change the port value manually ?
    -What will happened to the Single Sign On function with this manually port changing. Does Single Sign On works later on correct or have we to change much more ?

    Currently, changing the listener port is not supported. It must stay on 1521. I believe this is to be fixed in a latter release (perhaps 9.0.4)

  • How to import excel file in oracle 10g suit

    Respected all,
    i am working d2k6i now i am going to 10g suit and i want to import excel file so anybody help me how to do it? Thanks in advance.

    Hi,
    This forum is dedicated to Oracle SQL Developer Data Modeler, so it is possible to get an answer here, but it is not very likely.
    Try to get help in in more appropriate forum from here
    https://forums.oracle.com/forums/main.jspa?categoryID=84
    Regards

  • How to deal with single quote (') in a field value?

    I can successfully insert value with single quoet using
    Prepared statement with placeholder(?) construct .
    I can also successfuly use value with single quote(') in
    WHERE clause.
    My question is, is there a way to use string with single
    quote if a Statement like:
    String slqString ="INSERT INTO customers (name, address) VALUES ( 'O'Reilly Bob', 'St Mary's Street') ";
    Statement sqlStmt = con.createStatement();
    sqlStmt.executeUpdate(sqlString);
    The last statement will thow an SQLException because due to single quotes
    Any ideas?

    I think the question was regarding the ' in O'Reily. Use ' twice when using the Statement interface, i.e.
    ("O''Reilly Bob", "St Mary''s Street")
    So that's two single quotes, not a double quote, to successfully insert a single quote, if you know what I mean....
    But like you said PreparedStatement does things like this for you.

Maybe you are looking for