How to insert data with ' ' in the table

I have the following requirement

I gave you some example of table to understand the requirement
SQL> create table ttt(a varchar2(55));

Table created.

SQL> insert into ttt values('insert into aa values('abc')')
insert into ttt values('insert into aa values('abc')')
                                               *
ERROR at line 1:
ORA-00917: missing comma
Although insert the foregoing statement looking for somewhat different, but according to my requirement, I need to do...

Please help me in this...

Thank you
Saliha
uhhhh....

cant you just substitute your name instead of |
one and the same thing,

SQL> insert into ttt values('hai ''jyothsna'' how are you');

1 row inserted

SQL> commit;

Commit complete

A
-------------------------------------------------------
hai '|' jyothsna how are you
hai 'jyothsna' how are you

Tags: Database

Similar Questions

  • How to insert data with & table...

    Hello

    I want to insert following data to the table

    SQL > insert into emp values ("company & co");

    Enter the value for co:
    How to avoid this?
    set define  off
    sql>insert into emp values('company & co');
    

    It will work

  • How to insert record empty in the table?

    I guess I need to insert a blank record in my table to troubleshoot issues below, but don't know how to do.

    I have a function below that is part of two selects the associated component. My first problem is if no data is passed to the argument, select field that is bound to the function is very small (I like to have a default width). Adding a 'width' will not work.

    Second, if there is data passed to the argument (in Arguments.accountID, I would like to have a clean record inserted at the top of the results of the selection list. So in summary, if no data is transmitted to the argument, select the field is very weak. If the data are transmitted to the argument, the selection list is filled, but I need to have an empty folder (option) at the top of the selection list.

    The code for the function shown below:

    < cffunction = 'getUsers' access returnType = name 'remotely' 'array' = >
    < name cfargument = "accountID" type = "string" required = "yes" >
    <!--> set variables
    < cfset var data = "" >
    < cfset var result = ArrayNew (2) >
    < cfset var i = 0 >
    < cfset data1 = oSF.QueryObject("select_ID,_name,_Email,_ACCOUNTID__C_from_User").results >

    < cfquery dbtype = "query" name = "data" >
    SELECT ID, NAME, ACCOUNTID__C
    OF DATA1
    WHERE ACCOUNTID__C = ' #arguments.accountID # '.
    < / cfquery >


    <!--> results converting it into table
    < cfloop index = "i" = "1" to = "#data.recordcount #" >
    < cfset result [1] = data user.user>
    < cfset result [2] = data .name>
    < / cfloop >
    <!- and return it - >
    < cfreturn result >
    < / cffunction >

    < b > Code to select list: < /b >


    < name cfselect = 'Contacts'
    ToolTip bind = "SWC:getPartners.GetUsers({Mediaid})" = "select the partner Rep' onError =" ""
    Width = "50" / >

    Change this:

    SELECT ID, NAME, ACCOUNTID__C
    OF DATA1
    WHERE ACCOUNTID__C = ' #arguments.accountID # '.

    for this
    Select distinct "id,"name", from accountid_c
    of some_small_table
    Union
    SELECT ID, NAME, ACCOUNTID__C
    OF DATA1
    WHERE ACCOUNTID__C = ' #arguments.accountID # '.
    order by id

    If one of these fields is not text, use any function db is appropriate convert to string in the bottom half of the application

  • How to insert huge records in the table for the practice.

    Hello

    I created a new database in my personal inbox. Now, I want some specimen for different practical feature of oracle 10g. I need at least 1,00,000 records with different lines and columns.
    any buddy tell me of any request or package that can create the table and insert unique records in this table.

    Looking for valuable advice.

    Thank you

    Can be dbms_random.string, dbms_random.value and dbms_random.random can help.

  • How to store data points in the table

    I'm new to labview and I am trying to store the output of the frequency of 'measures pulsed VI' in a table, add everything together and divide by the length of the array. I don't want a table of numbers to be shown on the indicator. Just average 25 numbers.

    Basically, I want to do, but in labview.

    arrayIndex = 0;

    for (int i = 0; i)<=25;>

    {

    NewData = somedata;

    MyArray [arrayIndex] = newdata;

    dataAvg = dataAvg + myArray [arrayIndex];

    arrayIndex ++;

    }

    dataAvg = dataAvg / 25;

    I have attached my attempt, but its probably a very poor attempt. (The N on my first loop for was 25 when I tried to run the VI)

    Thanks in advance

    You need n number of bed DAQmx to take the average of the number n of steps of the pulse. Silly to take 500 what whatsoever when you have a single DAQmx reading which returns a single measure. As I said, you can use a registry to offset or point-by-point inside the loop. Or, run a number n of the acquisition of times with a loop and moves the pulse measurement in the table for automatic indexing and calculate an average, when all acquisitions are made.

  • How to insert a row into the table from an entity class

    I use JDeveloper 11.1.2.3.0 using ADF.  I would like to insert a row in Table B, when A table is inserted into the database based on a value selected by the end user.  I could do in a database trigger, but I would try in the ADF. I think that the best place to do it would be in the entity based on the table A class. I could override the doDML method and search for DML_INSERT

    and make the table insert B here, but I don't know the best way to achieve this.  I guess I want to avoid using a SQL "insert". I'm new to ADF and it can be difficult to get

    a question using the appropriate terminology. I hope this makes sense.

    Hello

    Check out this blog: http://andrejusb.blogspot.com/2008/02/complex-insert-in-easy-way.html

    Arun-

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How to find inserted last record in the table.

    Version: Oracle 10g

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    As I got to know that the Rowid is not a result perfect result. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10g

    This is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    Not possible as your data model do not answer for him. As simple as that.

    If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.

    If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.

  • How to insert data in the XML file?

    Hi guys,.

    How to insert information into an XML file. I tell you, I have a CFM file with some questions to the user

    When users submit this form within the form information is send in an XML file.

    How can insert this information in the XML file?

    When I don't have a DB?

    Thank you

    Kind regards

    Fabiano Magno Pechibella

    You must

    1. Read in the XML file
    2. Analyze the document in an XML (just one big struct) object
    3. Insert your XML code of the object where you need
    4. rewrite the XML file with your data now included

    You can Google 'ColdFusion working with XML' and find hundreds of items to help you. Here's a beginning tutorial to help you get started:

    Intermediate ColdFusion Tutorials - working with XML

  • Inserting data block to the SPOUT making varchar2 (150) column with currupted

    Hi Chris,

    We are facing a problem with the insertion of bulk data on the BEAK in a table

    Insert data block to the SPOUT making varchar2 (150) column in a table with the corrupted values.
    column of first row inserted correct, but the second line, columns in the new row as null

    We had trace OIC just before the insertion, these values are correctly coming
    But integration doesn't work properly

    Could you suggest, what could be the problem, we use the OIC during the client/server connection, this problem is for a direct connection also

    In general, please do not post questions forum for questions where you have already opened a SR. This translates simply by duplication of efforts and is unlikely to lead to a faster resolution. If the problem is serious or complex that you opened a SR, it is very likely that anyone in the forum (including me) will have an instant response and it will probably ask a lot of questions and do a lot of research that is already made by Oracle support.

    Thank you for your understanding and your cooperation.

    Chris

  • Insert data according to the length of column in table

    Hello

    If the length of the characters is more than one defined causes error. It's very embarrassing especially when get data dynamically

    and our query does not insert information that we expect.

    While trying to find the solution an idea came to my mind that, before insertion, so we check that the next data is greater than the specified length

    Take only the amount of characters that can be inserted and ignore the rest.

    I thought that the query as follows but failed.
    SQL> insert into cvDetails(cv_id,objectives) values(9687,substr("Hello",1,3950));
    insert into cvDetails(cv_id,objectives) values(9687,substr("Hello",1,3950))
                                                               *
    ERROR at line 1:
    ORA-00984: column not allowed here
    Is it possible to insert data up to the amount this column length defined by ignoring the obsolete characters and if the data

    length is less defined length of column, and then insert it as it is?

    Thank you in anticipation

    Hello

    Do not use double quotes as the string delimiters:

    SQL> create table test_nsa (str varchar2(10));
    
    Table created.
    
    Elapsed: 00:00:00.88
    SQL> insert into test_nsa values (substr('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',1,10));
    
    1 row created.
    
    Elapsed: 00:00:00.08
    
  • Insert xml files into the table

    Hi all

    How to create an application, which allows me to download an xml file and insert the file into a table, looking something like what makes the apex, with 'data-> data-> Data Load XML Workshop'.

    I tried to create it using this link https://forums.Oracle.com/message/9170494 # 9170494

    but when loading the file and send it (current executing the "sp") sends the error "ORA-22285: file for FILEOPEN operation or non-existent directory.

    I could slightly auxiliary

    concerning

    This idea is troubling for me.

    The XML file DOES NOT CHANGE.  This is the goal.  You have a DTD/XST that defines where in the XML hierarchy, a data element is and (so) how to access it.  With this information, you can hardcode things.

    Therefore, you should have no reason for that functionality 'map the data column in the table column"of the data loader since all mappings will be always the same.

    As a simple INSERT... The SELECT statement can (and should) be used.

    (use the FUSION if you update / insert data).

    I copy + paste some of my code in a procedure that I use.

    You will need to replace the parameter name (p_filename) with the value of appropriate link (name of item)

      declare
        l_XML XMLType;
      begin
        /* get file from APEX WWV_FLOW_FILES */
        begin
            select XMLType( blob_content, 1 ) -- 1 means that the file is USACII encoded. this may need to be changed.
              into l_XML
            from wwv_flow_files where name = p_filename; -- replace this with the appropriate ITEM NAME
        exception
          when no_data_found then
            raise_application_error( -20001, 'not in FLOW: ''' || p_filename || '''' );
        end;
    
        /* you'll need to figure this one out */
        INSERT INTO T (...)
        SELECT ..
        FROM  XMLTable( '/'
    pasing l_xml
                columns
                       PATH  -- repeat for each "column" you want to extract
            );
    
       delete from wwv_flow_files where name=p_filename;
      end;
    
  • Insert rows checked in the table

    Hi all
    How to insert rows checked in another table. I've created an interactive report with the query as follows
    Select apex_item.checkbox(1,id,'unchecked') ", Column1, Column2 from table. Now when I check the boxes to check off and hit the Insert button it should get stored in another table in DB (table1).

    Process:
    DECLARE
    IDX number;
    BEGIN
    BECAUSE me in 1.APEX_APPLICATION. G_F01. COUNTY
    LOOP
    IDX: = apex_application. G_F01 (i);
    Insert into step3_table (ID, TASK_NAME, TASK_DESCRIPTION, CATEGORY, TASK_INFO, TASK_STATUS, TO_WORKGROUP, IMPACT, FILE)
    values (apex_application. G_F02 (idx), apex_application. G_F03 (idx), apex_application. G_F04 (idx), apex_application. G_F05 (idx), apex_application. G_F06 (idx), apex_application. G_F07 (idx), apex_application. G_F08 (idx), apex_application. G_F09 (idx), apex_application. G_F10 (idx));
    END LOOP;
    END;

    Thanks for the help!

    Hello

    You don't have a F02 - F04 berries in your query.
    Even you, your insert statement do not have enough source columns.
    Also I do not know you could get all the data tables in this way... table F01 value maybe not array index value.

    Try

    BEGIN
      FOR i in 1..APEX_APPLICATION.G_F01.COUNT
      LOOP
    
        INSERT INTO step3_table (ID,TASK_NAME,TASK_DESCRIPTION,CATEGORY,TASK_INFO,TASK_STATUS,TO_WORKGROUP,IMPACT,FOLDER)
        SELECT id,column2,column2,column3,column4,column5,column6,column7,column8
        FROM table
        WHERE id = apex_application.G_F01(i)
        ;
    
      END LOOP;
    END;
    

    Kind regards
    Jari

  • How Post 1 Lakh lines in the table very fast

    How to insert 1 lakh in the below table from a file

    (Icet) CREATE TABLE
    ID decimal (10,0) NOT NULL,
    name varchar (100) NOT NULL,
    decimal (10,0) grade NOT NULL,.
    PRIMARY KEY (id));

    The sample data in the table is in the format below:

    3003308, GAUTHIER GOPALA KRISHNA MURTHY, 1
    3398122, SHAIK DEVI, 2
    .....
    ....

    DSK wrote:

    the data file is in the C drive, and oracle is also installed in the same drive,

    Ok. You can then use the external table. But I would not. Table ICET is an existing table? And you must add the data stored in the file c:\res.txt to the table? If so, the best way, in my humble OPINION, would be SQL * Loader. With the external table, you will need to create one and then do something like INSERT icet SELCT of external_table. Selecting in the outer table will read c:\res.txt and load it into a temporary table that will be then inserted in icet taable. With SQL * Loader file c:\res.txt will be loaded directly into the icet table.

    SY.

  • Inserting data by using the query

    Hello

    In a book, I read the Sub statement:

    Inserting data by using the query (DML)

    If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.

    Can someone clarify what is the significance of this (processed or unprocessed form).


    Thank you.

    Why don't you ask the author of the book.

    How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.

    I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.

Maybe you are looking for

  • B camera - DSLR Options

    Research in upgrading my DSLR Setup. Just sold my Canon 6 d and almost pulled the trigger on the a7S, but maintains his distance to see what comes out at NAB (and a few lenses EF having a bit more expensive Sony road). For lack of any new announcemen

  • How to access the photo files in the Finder?

    I just updated my system to the picture and I can't access my images in the Finder - the show in Finder option file is not available. What should I do?

  • Apps will not refresh when installing Apps is disabled in the Restrictions.

    I am limited to the installation of applications on the iPhone of my son.  The few games I welcomed will not refresh automatically.  I have to go over obstacles and activate app install and then perform the update. Is there a way to get around this -

  • BIOS password on pavilion dv7

    I see that you help others with bios password reset. Help, please! the code is 68039551

  • XPS 13 Ivy Bridge version Ultrabook?

    Is there a time limit for an XPS 13 Ultrabook with Ivy Bridge? I am about to buy the 2nd Gen, but am wondering if need to wait for a version of Ivy Bridge? Thanks in advance.