Compare commits
No commits in common. "7c7d251cedbd65a3ac2adcf742a4d188f3278fa1" and "aea7ec864aa1fae5ab6b7f7b262fe2f06905bb3b" have entirely different histories.
7c7d251ced
...
aea7ec864a
@ -24,7 +24,7 @@ CREATE TABLE Borrower (
|
|||||||
Name VARCHAR2(255),
|
Name VARCHAR2(255),
|
||||||
DateofIssue DATE,
|
DateofIssue DATE,
|
||||||
NameofBook VARCHAR2(255),
|
NameofBook VARCHAR2(255),
|
||||||
Status VARCHAR2(255),
|
Status VARCHAR(255),
|
||||||
PRIMARY KEY (rollin)
|
PRIMARY KEY (rollin)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ BEGIN
|
|||||||
DBMS_OUTPUT.PUT_LINE('Enter roll number: ');
|
DBMS_OUTPUT.PUT_LINE('Enter roll number: ');
|
||||||
p_roll := &p_roll; -- specify value directly for Live SQL. Eg.: p_roll := 1;
|
p_roll := &p_roll; -- specify value directly for Live SQL. Eg.: p_roll := 1;
|
||||||
DBMS_OUTPUT.PUT_LINE('Enter book name: ');
|
DBMS_OUTPUT.PUT_LINE('Enter book name: ');
|
||||||
p_book := '&p_book'; -- specify value directly for Live SQL. Eg.: p_roll := 'DBMS';
|
p_book := &p_book; -- specify value directly for Live SQL. Eg.: p_roll := 'DBMS';
|
||||||
|
|
||||||
IF (p_roll <= 0) THEN
|
IF (p_roll <= 0) THEN
|
||||||
RAISE nodata;
|
RAISE nodata;
|
||||||
|
@ -35,7 +35,8 @@ DECLARE
|
|||||||
p_roll Student.Roll%type;
|
p_roll Student.Roll%type;
|
||||||
nodata EXCEPTION;
|
nodata EXCEPTION;
|
||||||
BEGIN
|
BEGIN
|
||||||
p_roll := &p_roll; -- specify value directly for Live SQL. Eg.: p_roll := 1;
|
DBMS_OUTPUT.PUT_LINE('Enter roll number: ');
|
||||||
|
p_roll := &p_roll;
|
||||||
|
|
||||||
IF (p_roll < 0) THEN
|
IF (p_roll < 0) THEN
|
||||||
raise nodata;
|
raise nodata;
|
||||||
|
Loading…
Reference in New Issue
Block a user