SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
/* Create a PL/SQL block that declares variables for an employee's first name, last name, and salary. Set some values and display them using DBMS_OUTPUT. */ SET SERVEROUTPUT ON; CREATE OR REPLACE PROCEDURE makeEmployee IS emp_first_name VARCHAR2(50) := 'Prany'; emp_last_name VARCHAR2(50) := 'Hsa'; emp_salary NUMBER := 50000; BEGIN DBMS_OUTPUT.PUT_LINE('Full Name: ' || emp_first_name || ' ' || emp_last_name); DBMS_OUTPUT.PUT_LINE('Salary: ' || emp_salary); END; EXECUTE makeEmployee;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear