How to insert the character "&" in the table which is between in a string

SQL > create table s (ss varchar (10));

Table created.

SQL > insert into s values ('2 and 3 ").
Enter the value 3:
old 1: insert into values of s ('2 & 3')
new 1: insert into s values ('2')

1 line of creation.

SQL > select * from s.

SS
----------
2

SQL > drop table s;

Deleted table.

SQL > create table s (ss varchar2 (10));

Table created.

SQL > insert into s values ('2 and 3 ").
Enter the value 3:
old 1: insert into values of s ('2 & 3')
new 1: insert into s values ('2')

1 line of creation.

SQL > select * from s.

SS
----------
2

SQL > drop table s;

Deleted table.

SQL > create table s (ss nvarchar2 (10));

Table created.

SQL > insert into s values ('2 and 3 ").
Enter the value 3:
old 1: insert into values of s ('2 & 3')
new 1: insert into s values ('2')

1 line of creation.

SQL > select * from s.

SS
----------
2

SQL > drop table s;

Deleted table.

SQL > create table s (ss char (10));

Table created.

SQL > insert into s values ('2 and 3 ").
Enter the value 3:
old 1: insert into values of s ('2 & 3')
new 1: insert into s values ('2')

1 line of creation.

SQL > select * from s.

SS
----------
2

SQL > drop table s;

Deleted table.

SQL > create table s (ss nchar (10));

Table created.

SQL > insert into s values ('2 and 3 ").
Enter the value 3:
old 1: insert into values of s ('2 & 3')
new 1: insert into s values ('2')

1 line of creation.

SQL > select * from s.

SS
----------
2

Published by: user10438587 on January 6, 2009 07:57

Or you can set set off in SQL * Plus, thusly.

test@ORA10G>
test@ORA10G> --
test@ORA10G> show define
define "&" (hex 26)
test@ORA10G>
test@ORA10G> set define off
test@ORA10G>
test@ORA10G> --
test@ORA10G> create table s (ss varchar(10));

Table created.

test@ORA10G> insert into s values('2 & 3');

1 row created.

test@ORA10G> commit;

Commit complete.

test@ORA10G> select * from s;

SS
----------
2 & 3

test@ORA10G>
test@ORA10G> --
test@ORA10G> set define on
test@ORA10G>
test@ORA10G>

isotope

Tags: Database

Similar Questions

  • How to insert the table of contents within a table

    Using FrameMaker 12, I create a table of contents within a table. This means, 1st column contains the number of paragraphs, the 2nd column of the text of the paragraphs, the 3rd column the page numbers. Of course, each item must fill each cell of the table. I downloaded an example.

    Thank you for your help

    Nicolas

    TOC special format.jpg

    Create a table of contents in normal conditions and use tabs as separators between the page number and section number, <$paratext>.

    Then use convert FM to the usefulness of the table to convert the table of contents for a table using the table design appropriate to your catalog.

    It's a manual, and you will have to redo this each time that you update the table, but it should only take a few clicks to do. Automate the steps with a script would make it less painful.

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • How to know the tables used in packages of a schema.

    How to know the tables used in packages of a pattern that I have connected.

    SELECT DISTINCT referenced_owner, referenced_name

    Of all_dependencies

    Owner WHERE = "MY_USER_NAME".

    AND type ('PACKAGE', 'BODY of PACKAGE')

    AND referenced_type = 'TABLE '.

  • HOW to: Insert the symbol of the degree in text

    An another "How To" question.

    Running PE 13.1 on a Windows PC with WIN 7 64-bit.

    How to insert the symbol of the degree in text - I would like to have something like "temperature + 2 < degree symbol > water C.

    where < degree symbol > is the small circle (triggered).

    I found how to insert copyright (Alt + 0169) & the Tilde (Alt + 126) helped by Wikipedia, but the Windos ciode for the degree symbol is not shown - just the

    Unicode U + 2103 but Alt + 2103 just inserts a '7'.

    HEM

    HEM

    If you have the copyright © symbol to work for you with Alt + 0169, I think Alt + 0176, you should get the degree symbol as in 32 °.

    If please give it a try in the Titler, open Premiere Elements and let us know if it worked for you.

    Thank you.

    RTA

  • How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    904632 wrote:

    How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    Please see (how to recreate the ECX Related queues? (Doc ID 1354312.1)).

    Thank you

    Hussein

  • How to design the table from the answer to the question table.

    Hi all

    I am creating an application for student review online.

    There are two types of questions, the only choice of response and multi choice answers.

    My question is less than
    create table question_master
    (
    exam_id number references exam_master(exam_id),
    marks_of_each_question number,
    type_of_question char(1),-- single choice answer/multiple choices answer
    q1 varchar2(2000),
    q2 varchar2(2000),
    q3 varchar2(2000),
    q4 varchar2(2000))
    my table to answer (I'm not satisfied with who is below
    create table answers_of_questions
    (
    answer_id number primary key,
    question_ID number referenes question_master(question_id),
    answer varchar2(4000) not null,
    is_answer_correct char(1),--y/n,
    student_selection char(1),--y/n   student select it or not
    ....
    ...
    now, I'm perfectly how to create the RESPONSE table to contain the answers.
    the only choice is good, but several checkboxes choices, what to do?
    How to design the table from the answer?

    do I have to create 2 tables to contain the answers?
    Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
    may be called STUDENT_SELECTED_ANSWERS or something like that.
    If anyone has some reference to the script retail scheme review online, kindly share with me.

    Kind regards.

    Kind regards.

    If you need to have answers in another table:

    Student (student_id, name, etc...)
    Review (exam_id, exam_name, etc...)
    Question (question_id, exam_id, question_text)

    Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
    OR
    Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

    Student_Answer (student_id, question_id, a, b, c and d)
    OR
    Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

    To what extent you want to standardize, it is up to you.

  • How to add the table radio button.

    Hello

    I want to update the record if I want that an option of button raduio shaped tabular .There is no option for tabular.
    How to add the table radio button.


    Thank you

    Published by: 805629 on February 3, 2011 04:56

    Use APEX_ITEM. BOX API in the definition of SQL query for the form of tables

  • How to check the table have are all views in oracle

    Hello
    How to check the table have are all views in oracle
    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' 
    

    You can use dba_dependencies to find views in the different schema.

  • Dear Apple, I am Sayed of Egypt living in Saudi Arabia and I am a user of the I produced phone since I phone 4 and really I'm shocked by the incident that happened to my phone I 6 when he returned on the table which has led to the breakdown of screen whic

    Dear Apple, I am Sayed of Egypt living in Saudi Arabia and I am a user of the I produced phone since I phone 4 and really I'm shocked by the incident that happened to my phone I 6 #F2NNQ1WZG5QW when he returned on the table which has led to the breakdown of screen which is quite weird for me and not accepted for the kind of quality of apple products , I went to the Agency here for the interview they asked me to contact you directly. I'm waiting for your answer to fix my screen. Thankx Sayed

    You don't talk to Apple. This is a user forum.

    Accidental damage are not covered by the warranty.

  • How to make the difference in percentage between two matrices?

    Hello everyone, I just want to ask how to make the difference in percentage between two binary matrices. This is to compare two images converted to matrices in LabView. Thank you.

    Well, in the current image interesting pixels are zero in the reference image. Here is a small example that would take all the zero 100% pixel, then look at the pixels of same in the other image to see how are always 0.

    Modify if needed.

  • going on a computer: how to cancel the password which is necessary for the opening of the computer

    How to cancel the password which is necessary for the opening of the computer

    Do you mean that a password is required immediately after you turn on the computer or when you arrive at the Welcome to Windows screen? If the first case, it is a BIOS password and how you disable it depends on what type of computer you have. If the latter:

    Set up Windows to automatically connect (MVP Ramesh) -http://windowsxp.mvps.org/Autologon.htm

    If you would like more information or is not what you mean, please explain your post.

    MS - MVP - Elephant Boy computers - don't panic!

  • How to insert the value from the FORM to another database table?

    Hi all

    I have the following problem.

    I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)

    CREATE TABLE MATURED_FD_DTL

    (

    ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,

    CUST_CODE NUMBER (9),

    FD_AMT NUMBER (15),

    FD_INT_BAL NUMBER (15),

    TDS NUMBER (15),

    CHQ_NO NUMBER (10),

    CREATED_DATE DATE,

    CREATED_BY VARCHAR2 (15 BYTE),

    PREV_YR_TDS NUMBER (15),

    ADD_FD_AMT NUMBER (15),

    DESCRIPTION VARCHAR2 (100 BYTE),

    P_SAP_CODE NUMBER (10),

    P_TYPE VARCHAR2 (1 BYTE)

    )

    By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.

    But I want to insert these values in another table called TEMP.

    I want to insert values of form only, no table select.

    How can I do this?

    Help me.

    Is Oracle Designer 6i.

    Answer:

    BEGIN

    Commit_form;

    PREMIER_ENREGISTREMENT;

    LOOP

    insert into TEMP_MATURED_FD_DTL

    SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

    NEXT_RECORD;

    END LOOP;

    PREMIER_ENREGISTREMENT;

    COMMIT;

    MESSAGE ("RECORD UPDATED AS PAID '");

    MESSAGE (' ', no_acknowledge);

    END;

  • How to insert into a GLOBAL TEMPORARY TABLE and get the data from it?

    The requrement is
    Split the string ENTRY point on the base and store it in a Collection. And the values of the collection will be stored in a global temporary table. Then, I'm updating some other table based on the data from the temporary table.

    There is in fact no error message. But there is no data in the temporary table and also no change in the update statement

    First of all, I'm creatiing a global temporary table only once outside the procedure.

    CREATE GLOBAL TEMPORARY table GLt (data_element number)


    create or replace procedure test_proc (p_in_string VARCHAR2) is
    i the number: = 0;
    number of POS: = 0;
    CLOB lv_str: = p_in_string;
    p_delim VARCHAR2 (1): = ', ';

    TYPE t_array IS TABLE OF VARCHAR2 (20) INDEX directory.
    t_array channels;

    BEGIN

    -cutting of string input and store in the strings (i) collection

    POS: = instr (lv_str, p_delim, 1, 1);
    WHILE (pos! = 0) LOOP
    i: = i + 1;
    Strings (i): = substr(lv_str,1,pos-1);
    lv_str: = substr (lv_str, pos + 1, length (lv_str));
    POS: = instr (lv_str, p_delim, 1, 1);
    IF pos = 0 THEN
    Strings (i + 1): = lv_str;
    END IF;
    END LOOP;

    run immediately "drop table TWG;
    run immediately ' CREATE GLOBAL TEMPORARY table (data_element number) TWG on commit preserve rows ";

    FORALL i in strings.first... Strings.Last
    INSERT INTO VALUES TWG (strings (i));
    commit;

    Update first_tbl set PIN is "XXX" where first_col in (select data_element from TWG);.
    commit;

    END test_proc;

    Published by: cedric b on January 25, 2013 12:59

    Remove the two execute immediate line. They are wrong.

    And then use the table in your code that you created at the beginning. The name is GLT.
    And delete the first commit. This validation would empty the temporary table of GLT.

    You get an error? Or it does not work as expected?

    Also, show how you call the procedure.

    Published by: Sven w. January 25, 2013 14:45

  • How to insert the data from the table file?

    I need to know that how can I insert data into multiple columns by file. I can simply insert data into a table of columns, but could not find a way to put the data in the column all.

    My data in a file store
    ************************************************text.txt***************
    133, nanny, nagina, 14 mph, 45637, 9156729863

    **************************************************************my_data(table)**********
    try to insert into table below...

    Name, ID, last_name, add, PIN. Mob

    *********************************************

    Let me know if you need anything else... :))

    Hey nanny.

    In fact, in SQL Developer, you can open a connection to the target schema, right-click on the Tables node in the Navigator tree, select import the data, then use the data import wizard. It is extremely flexible. Looks like you have a file of comma-separated variables, so if you select Format: csv and import method: Insert it will probably work fine.

    To minimize the risk of errors during import, choose a limit value of preview so that the wizard can review the data type and the size of all columns in several lines of data as possible, and then examine the size/type of data for each column on the next page of the wizard and replace if necessary. For date columns, it is also important to choose the appropriate format mask.

    Hope this helps,
    Gary
    SQL development team

Maybe you are looking for

  • How to bike to work

    Hello community, How is he wanted by Apple to follow the short cycles as 2kms to work? Short one it as a workout or just simply do nothing? How can we watch it distinguish between me horse with my cooking or driving slowly with a car? Thank you for y

  • Report Builder by using ms word

    I want to create a ms word report generator function in my lb8.2 project. in the report, I need to paste or insert a gif file and a table the table lv or .csv file. I don't know where to start, the project that I did with the exception of the generat

  • Replacing drive in XP Home

    I replaced my c drive after a virus.  The new drive will not recognize the slave. It appears in disk management with a dynamic disk with a yellow mark. The right side is empty. When I use command prompt and follow the steps in the help section, it sa

  • Modes for Clip USB

    I had problems with the annoying popup balloon "new hardware found".  I searched the net solutions.  Ran across a post that suggested changing the USB mode MSC connection method.  I have three clips of different ages.  After the passage of the I was

  • How can I reinstall windows after new HD, but don't have windows or recovery discs, I have valid Vista COA and the product key

    I have a laptop Acer 4720 with valid product key of Vista Home Premium OEMact and COA label, my problem is the HD is broken and I need to install the new HD and then reinstall windows, but I have not all disks (was on the recovery partition which is