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
What is pls_integer in pl sql?
what is the difference between char and varchar data types? : Sql dba
what are the different functions in sorting an array? : Sql dba
What is pl sql code?
What is a table in a database?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
what are enums used for in mysql? : Sql dba
How does index help in query performance?
Mention what plvcmt and plvrb does in pl/sql?
What are tables and fields?
Can a commit statement be executed as part of a trigger?
How to find 3rd highest salary of an employee from the employee table in sql?
what is row? : Sql dba
How do I count rows in sql?
What is delimiter in pl sql?