PL/SQL is Oracle Corporation’s procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database, Times Ten in-memory database, and IBM DB 2. Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. In this program, we are going to share how to divide two numbers in pl sql with the output.
Copy the below pl/sql program and execute it to see the program output.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
declare a number(5); b number(5); c number(7); begin a:=30; b:=6; c:=a/b; //Print the Result dbms_output.put_line('The sum is '||c); end; |
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.