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...

mail-id table contains two columns(email_id,userid)
it contains different types of mail-ids,and no of users.
here username length is differ na,(ex-
tamil@yahoo.com,joshua@hotmail.com like)
now i want to fetch the email-ids only starting from '@'
(ex-@gmail.com,@yahoo.com,@hotmail.com

Answer Posted / raji_4u

select substr(mail_id,instr(mail_id,'@',1)) from table_name

This works fine.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get each name only once from an employee table?

1154


describe transaction-safe table types in mysql : sql dba

1052


What is the difference between instead of trigger and after trigger?

1064


How do you clear the screen in sql?

1122


How do I view a sql database?

1059


What is clause in sql?

1176


List different type of expressions with the example.

970


How many sectors are in a partition?

1116


What is the difference between the implicit and explicit cursors?

1108


What is execute immediate?

1159


Can we use pl sql in sql server?

1132


What language is oracle sql developer?

1070


how to create a test table in your mysql server? : Sql dba

1053


What is replication id?

987


what are the different tables present in mysql? : Sql dba

1036