DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    jim larkin Guest

    SQL in oracle enterprise edition


    I am have a problem with sql iam new to this and dont know what is with the
    code i used please let me know if you see where
    SQL>
    Wrote file afiedt.buf

    1 insert into ROLLBAR_JLL
    2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    3 birthdate)
    4 values
    5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    6* 'm',15.25,'y',05/21/79)
    SQL>
    1 insert into ROLLBAR_JLL
    2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    3 birthdate)
    4 values
    5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    6* 'm',15.25,'y',05/21/79)
    'm',15.25,'y',05/21/79)
    *
    ERROR at line 6:
    ORA-00932: inconsistent datatypes

  2. #2
    Krishna Guest

    Re: SQL in oracle enterprise edition


    Hi Jim,

    I think you are missing a single quotation mark. Try with the following codes.

    insert into ROLLBAR_JLL
    (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,birthd ate)
    values
    ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)

    "jim larkin" <j759ll@stargate.net> wrote:
    >
    >I am have a problem with sql iam new to this and dont know what is with

    the
    >code i used please let me know if you see where
    >SQL>
    >Wrote file afiedt.buf
    >
    > 1 insert into ROLLBAR_JLL
    > 2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    > 3 birthdate)
    > 4 values
    > 5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)
    >SQL>
    > 1 insert into ROLLBAR_JLL
    > 2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    > 3 birthdate)
    > 4 values
    > 5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)
    >'m',15.25,'y',05/21/79)
    > *
    >ERROR at line 6:
    >ORA-00932: inconsistent datatypes



  3. #3
    Krishna Guest

    Re: SQL in oracle enterprise edition


    Hi Jim,

    Sorry, there was some problem with the last message. Any try using the following
    codes.

    insert into ROLLBAR_JLL(first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uni form,birthdate)
    values
    ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    'm',15.25,'y','05/21/79')



    Cheers.


    Krishna Pada Das
    MCDBA


    "jim larkin" <j759ll@stargate.net> wrote:
    >
    >I am have a problem with sql iam new to this and dont know what is with

    the
    >code i used please let me know if you see where
    >SQL>
    >Wrote file afiedt.buf
    >
    > 1 insert into ROLLBAR_JLL
    > 2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    > 3 birthdate)
    > 4 values
    > 5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)
    >SQL>
    > 1 insert into ROLLBAR_JLL
    > 2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    > 3 birthdate)
    > 4 values
    > 5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)
    >'m',15.25,'y',05/21/79)
    > *
    >ERROR at line 6:
    >ORA-00932: inconsistent datatypes



  4. #4
    Bill Hullsiek Guest

    Re: SQL in oracle enterprise edition


    Oracle is not interpreting the date string 05/21/79 correctly.
    I do not have my manuals, but there is a function to convert
    a character string to a date-time datatype or a date data-type
    correctly.




    "jim larkin" <j759ll@stargate.net> wrote:
    >
    >I am have a problem with sql iam new to this and dont know what is with

    the
    >code i used please let me know if you see where
    >SQL>
    >Wrote file afiedt.buf
    >
    > 1 insert into ROLLBAR_JLL
    > 2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    > 3 birthdate)
    > 4 values
    > 5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)
    >SQL>
    > 1 insert into ROLLBAR_JLL
    > 2 (first_name,last_name,address,zipcode,phone#,position,ss#,mar_stat,hrlyrate,uniform,
    > 3 birthdate)
    > 4 values
    > 5 ('mary','jelson','1180 chelton dr pgh pa','15211','412-883-2798','waiter','181-54-8811',
    > 6* 'm',15.25,'y',05/21/79)
    >'m',15.25,'y',05/21/79)
    > *
    >ERROR at line 6:
    >ORA-00932: inconsistent datatypes




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links