Results 1 to 5 of 5

Thread: insert into

  1. #1
    Join Date
    Sep 2003
    Posts
    2

    insert into

    I am inserting information into a table and the problem keeps saying I have an error. Where?
    This is what I am writing -

    Insert Into Employees
    (firstname, lastname, title, age, salary)
    values ('Jonie', 'Weber', 'secretary', 28, 19500.00);

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    What is the exact error message?

    Probably the data type and values you passed don't match.

  3. #3
    Join Date
    Sep 2003
    Posts
    2

    sql error message

    The message I am receiving is:
    Error occured.
    Recheck your SQL statement.

    Hopes this helps you in figuring out what I am doing wrong.
    My table is
    create table employees
    (firstname varchar(15)
    lastname varchar(20)
    title varchar(20)
    age number(3)
    salary number(7,2));

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    your insert statement worked fine in ms-access and also in sql server.

    what DB you are using?

  5. #5
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Is your database case sensitive?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •