write a query that returns first characters of each word in
Oracel/Sql pl sql
Answer Posted / muhammad faisal
/*
using PL SQL code*/
declare
CURSOR emp_sub IS SELECT substr(last_name,1,1)
from employees;
name employees.last_name%type;
begin
open emp_sub;
loop
fetch emp_sub into name;
/*select last_name into name from employees;*/
dbms_output.put_line(name);
exit when emp_sub%notfound;
end loop;
close emp_sub;
end;
/
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Explain the order of sql statement execution?
how to delete an existing column in a table? : Sql dba
How to prepare for oracle pl sql certification?
Which is better stored procedure or query?
What is the difference between join and natural join?
What is difference between sql function and stored procedure?
what is user defined functions? : Sql dba
Explain the insert into statements in sql?
How to select all records from the table?
Is record in pl sql?
Is sqlite thread safe?
Which join condition can be specified using on clause?
What will you get by the cursor attribute sql%found?
what is the difference between delete and truncate statement in sql? : Sql dba
Can a foreign key be a duplicate?