How to find string or key value using pl/sql code?

Answer Posted / kumarvijay

var=1; --var='a'

select to_number(var) from dual;

if variable holds string it will through exception else it
will execute.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which operator is used in query for pattern matching?

617


What is spool?

586


What type of database is cloud sql?

572


How do I audit the sql sent to the server?

518


How do sql triggers work?

546






Describe different types of general function used in sql?

527


What does fetching a cursor do?

610


define join and explain different type of joins? : Sql dba

542


How can you view the errors encountered in a trigger?

538


Write a sql query to find the names of employees that begin with ‘a’?

568


Why commit is not used in triggers?

572


what is sql profiler? : Sql dba

578


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3321


What are the topics in pl sql?

511


what is 'mysqld'? : Sql dba

535