Oracle B25-317-01 Manuel d'utilisateur Page 65

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 94
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 64
Using PL/SQL to Capture Business Logic
Beta Draft Executing Stored Procedures and Functions 6-3
7.
In the Oracle Database XE Login page, enter the Username hr and Password hr.
Click Login:
8. In the Home page, click the arrow on the SQL icon, move the mouse over SQL
Commands and click Enter Command:
9. In the SQL Commands page, enter the following text to create a
calc_remuneration() function:
create or replace function calc_remuneration(
salary IN number, commission_pct IN number) return number is
begin
return ((salary*12) + (salary * 12 * nvl(commission_pct,0)));
end;
Click Run:
Vue de la page 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 93 94

Commentaires sur ces manuels

Pas de commentaire