Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

PL/SQL Prompt

$
0
0
Dear all

I want to do a simple algorithm where the user enters a number and is returned the double of that number. I am beginner to PL/SQL and would like to know how to do. Thank you. I am trying the code below: which is not correct. Could you please help me? Thanks.

set serveroutput on;
set verify off;
num integer;
dobnum integer;
accept num prompt 'Digite um número: ';
BEGIN
dobNum:=num+num;
prompt dobNum;
END;

Carlos Junior
Database Administrator and Data Architect
-------------------------------------
Blog do DBA - Responsabilidade em TI
@carlosxbjunior (twitter)
carlosxbjunior@gmail.com
-------------------------------------

Viewing all articles
Browse latest Browse all 13329

Trending Articles