I am new to PL/SQL and I need your help..
I was created student table named(students) and inserted 10 rows successfully. I need to create a block when the user enter the student ID should be show the all details which match with the entered student ID.
SET SERVEROUTPUT ON;
ACCEPT inputID PROMPT 'Please enter the student ID to show the details'
DECLARE
B_students students%ROWTYPE;
BEGIN
SELECT *
INTO B_students
FROM students
WHERE B_students.studentID= inputID;
dbms_output.put_line('Student details : ID:'
||B_students.studentID
||'Student Name'
||B_students.studentName
||'Student GPA'
||B_students.studentGPA
||'Student AGE'
||B_students.studentAGE
||'Student Gender'
||B_students.studentGender);
END;
The error report : "inputID": invalid identifire PL/SQL: SQL Statment ignored 06550.00000 -"line %s, column %s:\n%s" *cause: usually a PL/SQL compilation error