write a query that returns first characters of each word in
Oracel/Sql pl sql
Answer Posted / rajesh venati
For SQL:-
SELECT SUBSTR(ENAME,1,1) FROM EMP;
--------------------------------------------------------------
For PL-SQL:-
DECLARE
CURSOR ECUR IS SELECT SUBSTR(ENAME,1,1) FROM EMP;
BEGIN
FOR V_ECUR IN ECUR LOOP
DBMS_OUTPUT.PUT_LINE(V_ECUR.ENAME);
END LOOP;
END;
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
How do you modify a column in sql?
What is a record in pl/sql?
how do you login to mysql using unix shell? : Sql dba
What is sql server and ase?
Is subquery faster than join?
i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this
What programs use sql?
How do I run sql?
What are sql ddl commands?
Is it possible to update views?
what is the difference between a local and a global temporary table? : Sql dba
Explain what is dbms?
What is out parameter used for eventhough return statement can also be used in pl/sql?
Which join is like inner join?
Does sql view stored data?