top of page

CONSTANT in PLSQL

Writer's picture: Rumesh Aponso (RMAX)Rumesh Aponso (RMAX)

Updated: Nov 22, 2024

DECLARE
   HUNDRED_     CONSTANT VARCHAR2(15) := 'hundred';
   HUNDRED_NUM_ CONSTANT NUMBER       := 100;
BEGIN
   Dbms_Output.Put_Line(HUNDRED_);
   Dbms_Output.Put_Line(HUNDRED_NUM_);
END;

Output:


2 views0 comments

Related Posts

See All

LISTAGG in PLSQL

Example 1: SELECT DISTINCT LISTAGG(t.commission_receiver, ';') WITHIN GROUP (ORDER BY t.commission_receiver) FROM...

Get Foundation Error from ORA Error

FUNCTION Strip_Ora_Error ( sqlerrm_        IN VARCHAR2,    sqlcode_        IN NUMBER DEFAULT NULL,    strip_ora_only_ IN BOOLEAN DEFAULT...

Comments


Copyright © 2025 RMAXOneNote

  • Online CV
  • LinkedIn
  • Youtube
  • GitHub
  • Blogger
bottom of page