How to find string or key value using pl/sql code?
Answers were Sorted based on User's Feedback
Answer / gourvendra singh
if you want to find a string value you can use the
following command
select length(TRIM(TRANSLATE(string,'+-.123456789',' ')))
from dual;
string=value that u entered
if the result is null then the string is numeric else its a
character
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / 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 |
How can a pl sql block be executed?
Is sql a oracle?
When do we use triggers?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
Explain UNION,MINUS,UNION ALL, INTERSECT?
Explain Connect by Prior?
what tools available for managing mysql server? : Sql dba
What are sql*plus environment variables?
What is sql used for?
how to retrieve the top 2 salaried persons from a database?
which tcp/ip port does sql server run on? : Sql dba
what is the command used to fetch first 5 characters of the string? : Sql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)