Incorrect syntax near insert

前端 未结 3 544
既然无缘
既然无缘 2021-01-28 18:51

I am a student this is homework... The tables are there but data isn\'t being inserted.

Thanks for any advice

Msg 156, Level 15, State 1, Line 181
Incorrec         


        
3条回答
  •  Happy的楠姐
    2021-01-28 19:23

    There's your problem:

    INSERT INTO 
    Employee 
    
    (Last_name,
    First_name,
    Address,
    City,
    State,
    Telephone_area_code,
    Telephone_number,
    Job_title,
    Hire_date,
    Wage,
    Gender, 
    Race,
    Age)
    
    INSERT INTO 
    Employee 
    
    (Last_name,
    First_name,
    Address,
    City,
    State,
    Telephone_area_code,
    Telephone_number,
    Job_title,
    Hire_date,
    Wage,
    Gender, 
    Race,
    Age)
    
    VALUES 
    ('Drohos',
    'Craig',
    ' ',
    'Selano Beach',
    'CA',
    '619',
    '555-0202',
    'Assistant Manager',
    '6/15/2000',
    '$51,000.00 ',
    'M',
    'Caucasian',
    32);
    

    Look at the error message, at line 181.

    You need to have values with your insert statement.

提交回复
热议问题