sql - Oracle Insert Script Error -


ok looking @ oracle school , having lot of issues getting database create. using sql developer. getting multiple errors inserts. looking through not see wrong script. can on , tell me did wrong? new here go easy on me.

`drop table enrollment cascade constraints purge; drop table course_section cascade constraints purge; drop table course cascade constraints purge; drop table term cascade constraints purge; drop table student cascade constraints purge; drop table faculty cascade constraints purge; drop table location cascade constraints purge;   create table location (locid number (5) primary key, bldg_code varchar2 (10) not null, room varchar2 (6) not null, capacity number (5)  );  insert location values (53, bus, 424, 45); insert location values (54, bus, 402, 35); insert location values (55, bus, 433, 100); ` 

your varchar2 values need in single quotes:

insert location values (53, 'bus', '424', 45); 

etc...


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -