This being my first post, let me write the custom
My interest revolves around three things as of this writing.
So, here I post the three
"Hello World" programs using them.
perl -e 'print "Hello World\n"'
perl invokes the interpreter and
-e (hyphen e) tells that a program is following it.
Using 5.10 and above versions, we can write like the following
perl -M5.010 -e 'say "Hello World"'
-M loads the module 5.010 for us and hence the
say function works as expected.
- Oracle SQL
select 'Hello World' from dual;
dual is a special table that comes with the Oracle database.
from clause is a must in Oracle (not like MySQL).
Though I distinguished SQL and PL/SQL here, usually I don’t. Its just the “Oracle.”
My experience is with only one database and it is Oracle.
So, if you want to learn about any other database, this is not the site.
- Oracle PL/SQL
set serveroutput on exec dbms_output.put_line('Hello World');
The above code is not a PL/SQL as a whole. First line is an SQL*Plus command.
exec of the second line is also an SQL*Plus command.
Here comes the pure PL/SQL program.
begin dbms_output.put_line('Hello World'); end; /
html code fragment (yes, it is not a complete mark-up) should show a message box.