oracle - Missing Select Keyword SQL -
prompt ' data entry publishers ' accept v_pub_id varchar2(30) format 'a10' prompt 'enter publisher id: ' accept v_pub_name char format 'a80' prompt 'enter publisher name: ' accept v_pubdate date format 'dd/mm/yyyy' prompt 'enter pulication date(dd/mm/yyyy):' insert publishers ('&v_pub_id','&v_pub_name','&v_pubdate');
i not sure missing in statement.
although specific syntax error missing values
keyword, should include list of columns in insert
:
insert publishers(pub_id, pub_name, pubdate) values ('&v_pub_id','&v_pub_name','&v_pubdate');
if table format changes, statement start generating errors. furthermore, not clear person (or in 2 weeks), variables being assigned columns. explicit , avoid future errors.
Comments
Post a Comment