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
What is sql in java?
What is identity column in sql server?
how many sql dml commands are supported by 'mysql'? : Sql dba
what are rollup and cube in t-sql? : Transact sql
What is having clause in sql?
How do you update a sql procedure?
What does data normalization mean?
What is inner join in sql?
explain what is mysql? : Sql dba
what are string data types? : Sql dba
Can we use insert statement in function?
how do you know if your mysql server is alive? : Sql dba
How to make a copy values from one column to another in sql?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
how is exception handling handled in mysql? : Sql dba