How do you tell what your machine name is and what is its IP
address?
No Answer is Posted For this Question
Be the First to Post Answer
What are a cluster and non-cluster index?
How can you merge two tables in oracle?
How to export data with a field delimiter?
What are the four Oracle system processes that must always be up and running for the database to be useable?
How to call a stored function with parameters?
What is difference between truncate and delete?
How to define a variable to match a table column data type?
There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??
What are the different types of databases?
what are the disadvantages of hierarchial database over RDBMS?
what is the difference between primary key & foreign key?
57 Answers CTS, Infosys, La Multi, Sparsh, Wipro,
> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?