The social network for Oracle people
Asadullah fazli has not received any gifts yet
Santosh left a comment for Asadullah fazliproject.""Hi dear friends: I am in the final semester of computer scie i want to take the final project in the field of database."
"so dear friend which kind of tools should i learn before i take this project
please please please please tell me.
this will be you great kindness on me.
Posted on September 23, 2012 at 6:11am
Posted on October 16, 2011 at 12:47am — 3 Comments
Santosh said… Find out the number is Even or Odd
declare
num number(5);
begin
num:=#
if num mod 2 =0 then
dbms_output.put_line(' Number is ||num||' is even');
else
dbms_output.put_line('Number is '||num||' is odd');
end if;
end;
Santosh said… Hi
Plz find the below :
declare
first varchar(20):=&a;
second varchar2(10):=&b;
begin
dbms_output.put_line ('First letter before Swap :='||first);
dbms_output.put_line ('Second letter before Swap :='||second);
first := first || '/' || second;
second := substr(first, 1, instr(first, '/') - 1);
first := substr(first, instr(first, '/') + 1);
dbms_output.put_line ('........................');
dbms_output.put_line ('........................');
dbms_output.put_line ('First letter after Swap :='||first);
dbms_output.put_line ('Second letter after Swap :='||second);
end;
bilal bhat said… We have to use escape sequence,e.g if there is a table "bilal" and it has entry bilal_bhat under name column and i want to retrieve those names which has underscore, we can use
select name from bilal where name like '%/_%' ESCAPE '/';
bilal bhat said… select name from bilal where name like '%/_%' ESCAPE '/';
© 2013 Created by Eddie Awad.