I'm trying to create another table and insert data to practice... How can I insert multiple values?

I created another table for practice on two tables queries now.

That's what I have:

Insert in the test

(address, age, status, DriverID)

values ("131 Shore Drive", "Edison, NJ, 08011 ', ' 55', m ', '2').

("' 62 central avenue", "Middletown, NJ 08011', ' 43 ', am ', ' 1'");

('98 main street', ' Bristol, PA 19116 ', ' 67', the of ', '3' ").

('15 wrong Way', ' Long Island, NY 10111 ', ' 60', 'W', '4' '),

("' Kevin 9 Place", "New York, NY 10111 ', ' 25', the of ', '5'");

It says command SQL is not properly terminated.

Like this:

Insert into test (address, age, status, DriverID)

values ("131 Shore Drive", "Edison, NJ, 08011 ', ' 55', m ', '2');

Insert into test (address, age, status, DriverID)

values ("62 Middle Avenue", "Middletown, NJ 08011', ' 43 ', am ', ' 1'");

...

Tags: Database

Similar Questions

  • I tried to add another email but I did ' t get, how can I get?

    I don't want to change my email and password, but I tried adding 2 different email and when I need to write that the password did not, so how can I do? Can I have different emails?

    Hi Agelicaperrin,

    You use Outlook or another e-mail program? If you use outlook, you can add multiple email addresses by following this: http://office.microsoft.com/en-us/outlook-help/add-or-remove-an-e-mail-account-HA001231634.aspx

    If you are using another email client it can be different steps to follow...

  • Create a table and inserting images easily?

    I have about 260 photos still size that should go in a table.

    The table will then 4 obviously 65 lines of broad and wide columns.

    Basically is there something that I can use to mass insert these images, one in each cell?

    Thank you!

    Hey afecustoms,

    You should look into some viewers of pictures such as http://www.airtightinteractive.com/viewers/. Saw the pictures, sitting at a table could get a little boring, so I thought id throw this site to you. I used one of them of hermetic to my http://mustangdriveinguelph.ca/flash%20tilt/index.aspxdrive-in theater site. You can also find most of these programs in torrents

    Check them out!

  • Click on a tab used to open another tab and closed environment now tab, how can I change this back?

    When I middle - click the mouse on a tab, it will open another tab with a copy of this page. For example, when I go to Pogo.com on one of recent games here I've sometimes will use the middle button to reopen the page and check the status of a fault, if it has been activated and the extent of the progress made. Now when I click middle mouse on a tab it will close the tab and if only one tab is open out of the browser.

    I currently use:
    Windows XP SP3
    Firefox 36.0.4

    I have also tried to go to safe mode with Firefox without a change in behavior.

    Hi, you can copy a tab open pointing to reload the current page (right end of the address bar) by clicking the mouse wheel.

    If you want the browser remains open when you close the last tab, type Subject: config in the address bar, press ENTER, accept the warning, scroll to browser.tabs.closeWindowWithLastTab and double-click on it to change the 'value' of true to False.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • I handed to default seetings, trying to solve a problem, and lost vital links. How can I Re apply the old settings?

    I used the default reset, as he said he would fix most of the problems. My only problem was that my shortcut icon images have all been replaced with pictures of Firefox by default, suddenly, without known reason.

      Now, I have an even Bigger Problem. I NEED My Computer to run Easily, as I am Just a Novice, But Use It for work.
    

    I've been unemployed more of one year, until recently, and I can't afford to hire a professional for re - program again at this time, I did last year.
    I wanted Intenet Explorer as my homepage / default browser and he suggested that I use Firefox and then connected to use i / E as my home page.
    With Mozilla Thunderbird, I was bound to G-Mail.
    I see a shortcut icon, saying he has my old settings in the TI, but I have No idea how to re - apply the.
    I pray that someone can help me, please!
    I'm in big trouble, if I can't get my computer to it's simple one click to settings launch once again and may lose my ability to do my job at home, and my new job Thuis.
    I request here please.
    Please help me.

    Thank you, and blessings to all of you who can help you.

    Hello BDBell, see the following link how copying files between profile folders
    because now firefox create a new profile (with the reset option).

    If you cannot easily choose which files to copy, copy all the files to get your firefox like before you do your work, and then if you have any other problems, we are here to hear it and try to solve it.

    Thank you

  • Programmatically create ADF Table and binding.

    Hello

    I create the table and the columns programmatically using richeTableau and RichColumn. But unable to fill in the data in the table cells.

    Here is an excerpt of the code used. I followed the specified discussion ADF of Create Table by program. but I am not able to work.kindly suggest to solve this problem.

    RicheTableau tblObj = new RichTable();

    TableValues = (ArrayList) getCompValue (wsValues, compId) list;  contains a list of the HashMap object.

    tblObj.setVar ("trow");

    tblObj.setId ("tblDBrd");

    for (int k = 0; k < tblColumns.length; k ++) {/ / tblColumns contains a list of name of column to display in the table}

    RichColumn tblColumn = new RichColumn();

    tblColumn.setVisible (true);

    tblColumn.setId ("col" + k);

    tblColumn.setHeaderText (tblColumns [k]);

    UI RichOutputText = new RichOutputText();

    ui.setId (compId + k);

    "{[String expression =" #{row [] "+ k +"] ['"+ tblColumns [k] +"] ' ']} ";   want to retrieve the value of #{rank [k] [columnname]}

    ui.setValueExpression ("value", getValueExpression (expression));

    addComponent (tblObj, tblColumn);

    addComponent (tblColumn, ui);

    }

    tableModel = new SortableModel (tableValues);

    tblObj.setValueExpression ("value", getValueExpression("#{backingBeanScope.dashboardBean.tableModel}"));

    Thanks in advance.

    Best regards

    Arun

    You need the table setValue. Take a look at these discussions: programmatically set another link to Table read-only ADF and http://stackoverflow.com/questions/22389813/change-the-displayed-value-in-adf-table to get a few first thoughts and feel free to come back if you get stuck somewhere.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • create another table of existing table with distinct elements

    I have a table using the select clause on which gives following the result.

    SQL > select *.
    2 of BRANCH_MSTR;

    BRANCH_NO NAME
    ---------- -------------------------
    B1 Speaks (HO) Vile
    Andheri B2
    Churchgate B3
    B4 Zion
    Borivali B5
    B6 Matunga
    B1 C.S.Pur
    B1 Shahidnagar
    B1 Shahidnagar


    I want to create another table ACCT_DTLS of this table that has only a single column of BRANCH_NO, but has only discrete elements.

    I tried this,
    SQL > create table ACCT_DTLS
    2 (BRANCH_NO)
    3 as
    4. Select BRANCH_NO
    5 BRANCH_MSTR;

    Table created.

    SQL > select 8
    2
    SQL > select *.
    2 of ACCT_DTLS;

    BRANCH_NO
    ----------
    B1
    B2
    B3
    B4
    B5
    B6
    B1
    B1
    B1

    9 selected lines.

    But it's not working.

    HI Asit,
    Try like this

    sql>create table table-name as (select distinct column-name from another-table);
    

    example of

    SQL> create table temp_emp2 as (select distinct deptno from scott.emp);
    
    Table created.
    
    SQL> select * from temp_emp2;
    
        DEPTNO
    ----------
            30
            20
            10
    
  • Create a temporary table and insert using a select statement

    Hello

    I tried to create a temporary table and insert it by using the value in a select statement. Please see below the code

    ---
    CREATE a TEMPORARY TABLE GLOBAL Temp_Test
    (
    DATE OF DAY_FUTURE
    )
    AS
    SELECT TO_DATE (SYSDATE + ROWNUM, 'DD-MON-YY')
    DUAL CONNECT BY ROWNUM FROM < = 14)
    ---

    As soon as I run the script, the error message indicates the following:
    --

    Error from the 1 in the command line:
    CREATE a TEMPORARY TABLE GLOBAL Temp_Test
    (
    DATE OF DAY_FUTURE
    )
    ONLY select TO_DATE (sysdate + rownum, 'DD-MON-YY')
    Double connect rownum < = 14)

    Error in the command line: 2 column: 1
    Error report:
    SQL error: ORA-01773: cannot specify the types of data in this TABLE to CREATE column
    01773 00000 - 'cannot specify the types of column data in this TABLE to CREATE"
    * Cause:
    * Action:
    --


    What seems the problem? I already have the data type such as TO_DATE on my select statement.

    Any help would be appreciated

    Thank you
    SQL> CREATE GLOBAL TEMPORARY TABLE Temp_Test
      2  (
      3  DAY_FUTURE
      4  ) on commit preserve rows
      5  AS
      6  SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY')
      7  FROM DUAL CONNECT BY ROWNUM <= 14
      8  /
    
    Table created.
    
    SQL> select count(*)
      2    from temp_test
      3  /
    
      COUNT(*)
    ----------
            14
    
  • Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    What is your version of JDev?

    Actually your question is not clear to me, but as I understand, it is you the table in the page and you have popup inside this popup you have the button you need when you click on the button to read the value of the selected table row. In the listener action button, so if you can get the current row of the table and after that you can get any attribute of the line as:

    DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("TableIteratorName"); // from pageDef.
    Row r = iter.getCurrentRow();
    Object value1 = r.getAttribute("attribute1");
    Object value2 = r.getAttribute("attribute2");
    
  • CREATE TABLE and INSERT

    Hello

    I am a fairly new user for Oracle and have found this place to be very useful as I'm learning! One of the guidelines is to provide sample CREATE TABLE and INSERT data. I read the FAQ and in other forums to see if I could better understand this process, but I'm still struggeling reflected. Please can someone explain exactly what I do for these data, I want to be sure that I provided as useful information a lot in my posts to get help as soon as possible. I appreciate everything / all the answers!

    Hello

    Daniel Strong wrote:

    So, something like this:

    INSERT INTO skills (mu_id, external_id, skill_nm, skill_level) VALUES(220,AB,FAST,1);

    INSERT INTO skills (mu_id, external_id, skill_nm, skill_level) VALUES(7,BB,SLOW,7);

    INSERT INTO skills (mu_id, external_id, skill_nm, skill_level) VALUES(221,BC,FAST,1);

    INSERT INTO skills (mu_id, external_id, skill_nm, skill_level) VALUES(8,BD,SLOW,2);

    INSERT INTO skills (user_id, skill_nm) VALUES (AB, SLOW);

    INSERT INTO skills (user_id, skill_nm) VALUES (BB, SLOW);

    INSERT INTO skills (user_id, skill_nm) VALUES (BC, DOWN);

    INSERT INTO skills (user_id, skill_nm) VALUES (BD, SLOW);

    DESIRED RESULTS:
    MU_ID EXTERNAL_ID SKILL_NAME SKILL_LEVEL
    220 AB FAST 1
    221 AV FAST 1

    When you get a response, you want it works or is it OK if the answer causes errors?
    Obviously, you want people to post answers that work.  Make sure that the code of that validation works, too.  Test (and, if necessary, correct) your INSERT statements in your own development before posting on this forum system.

    The literal string values must be in single quotes.  I think you meant:

    INSERT INTO skills (external_id, skill_nm, mu_id, skill_level) VALUES (220, "AB", "QUICK", 1);

    Without the single quotes, AB and FAST are considered as column names or function.

  • How to update a table and insert into another

    I need to update a table and also to insert into another table and want to do it in the same form. I can it will break in 2 different forms, but it is awkward for the user. Is there a way common to this address? As a backdrop, the user is updated the status of a message (IE, changing it from open to closed) and then provide an answer. The response table is separate from the table of messages because its format is doing different.

    Thank you and sorry to bombard the forum today.

    .oO (davidbarrackphoto)

    > I need to update a table and also to insert into another table and want to
    > do it in the same form. I can it will break in 2 different forms, but it is
    > awkward for the user. Is there a way common to this address?

    You can do what you want in your form processing script. But for
    much more advanced than you must write your own code.

    > As a backdrop.
    > the user updates the status of a message (IE, changing it from open to closed)
    > and then provide an answer. The response table is separate from the table of messages
    > because its format is doing different.

    Just curious: what is the difference? IMHO, there should be only one table
    for messages. Can you post more details about it?

    Micha

  • The photoshop gave an error uninstalled my Macbook and tried to reinstall, but it seems the cod error 205, how can I solve this problem?

    The photoshop gave an error uninstalled my Macbook and tried to reinstall, but it seems the cod error 205, how can I solve this problem?

    Help creating cloud / cloud creative applications download error

    http://helpx.Adobe.com/creative-cloud/KB/error-downloading-CC-apps.html

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • Select values from the db1 table and insert into the DB2 table

    Hello

    I have three databases oracle running in three different machines. their ip address is different. among the DB can access databases. (means am able to select values and insert values into tables individually.)

    I need to extract data from the DB1 table (ip say DB1 is 10.10.10.10 and the user is DB1user and the table is DB1user_table) and insert the values into DB2 table (say ip DB2 is 11.11.11.11 and the user is DB2user and table DB2user_table) of DB3 that is to have access to the two IPs DB.

    How do I do this

    Edited by: Aemunathan on February 10, 2010 23:12

    Depending on the amount of data must be moved between DB1 and DB2, and the frequency at which this should happen, you might consider the SQL * COPY more control. I think it's very useful for one-off tasks little, so I can live within its limits of the data type. More http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/apb.htm#i641251.

    Change some parameter of sqlplus session are almost mandatory in order to get decent transfer rates. Tuning ARRAYSIZE and COPYCOMMIT can make a huge difference in flow. LONG change may be necessary, too, depending on your data. The documentation offers these notes on use:

    To activate the copy of data between Oracle and databases non-Oracle, NUMBER of columns is replaced by DECIMAL columns in the destination table. Therefore, if you are copying between Oracle databases, a NUMBER column with no precision will become a DECIMAL column (38). When copying between Oracle databases, you must use SQL commands (CREATE TABLE AS and INSERTION), or you must make sure that your columns have a specified precision.

    SQL * the VALUE LONGER variable limits the length of the LONG column you are copying. If all LONG columns contain data exceeds the value of LONG, COPY truncates the data.

    SQL * Plus performs a validation at the end of each successful COPY. If you set the SQL * variable more COPYCOMMIT DEFINED to a value positive n, SQL * Plus performs a validation after copying all lots n of records. The SQL * Plus ARRAYSIZE variable SET determines the size of a batch.

    Some operating environments require that the service names be placed between double quotes.

    From a SQL * Plus term on DB3, can resemble the command to move all content from my_table in DB1 to the same table in DB2

    COPY from user1/pass1@DB1 to user2/pass2@DB2 -
    INSERT INTO my_table -
    USING select * from my_table
    

    Note the SQL code * more line-continuation character ' - '. It is used to escape the newline character in a SQL * Plus command if you do not have to type all on one line. I use it all the time with this command, but I can't locate the documentation on that right now. Maybe someone else can put their finger on it.

    There are other ways to accomplish what the command copy and it is not without its quirks and limitations, but I find that there is usefulness in an Oracle Toolbox.

Maybe you are looking for