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
What is prepared statement in sql?
Why are sql stored procedures used?
Is drop table faster than truncate?
What are sql injection vulnerabilities?
how to get @@error and @@rowcount at the same time? : Sql dba
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
Is nosql relational?
Which sql statement is used to return only different values?
When is the explicit cursor used ?
Is record in pl sql?
What is pl sql in dbms?
How does sql developer connect to oracle database?
what are date and time data types in mysql? : Sql dba
What is trigger in sql?
What is a string data type in sql?