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

What are the string functions in sql?

976


How to Declare Fixed Length String Value In PL SQL

1156


What is the difference between subquery and correlated query?

1065


What is left join example?

949


What is the difference between nvl function, ifnull function, and isnull function?

1113


What is bitemporal narrowing?

1309


What is varchar data type in sql?

1085


what is 'mysqladmin' in mysql? : Sql dba

1026


Mention what plvcmt and plvrb does in pl/sql?

1143


explain advantages of myisam over innodb? : Sql dba

1069


What is plpgsql language?

1065


Why use subqueries instead of joins?

1081


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3570


Is it possible to update views?

959


Describe sql comments?

1044