Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between SUBSTR and INSTR?

Answer Posted / tulsi

SUBSTR is used to extract a set of characters from a string
by specificing the character starting position and end
position and length of characters to be fetched.
example substr('hello',2,3) will return 'ell'

INSTR is used to find the position of any particular
character in a word which returns numeric value.
instr('hello','e') - will return the position of 'e' as 2

Is This Answer Correct ?    65 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the alter statement to enable all the triggers on the t.students table.

1078


What is having clause in sql?

933


What is embedded sql with example?

993


What is information schema in sql?

1022


Can dml statements be used in pl/sql?

1028


How can you tell the difference between an index and a view?

877


What is meant by cursor in sql?

951


What plvcmt and plvrb does in pl/sql?

1255


Can cursors be part of a trigger body?

1590


What is rank dense_rank and partition in sql?

982


What is difference between stored procedure and trigger?

1074


How many types of tables are there?

910


Why do we use joins in sql?

919


What are pl/sql cursor exceptions?

1039


How much does sql cost?

943