thanks for your reply
actually i want to make the select query to get the first alphabet in the string.i have a table for voting
messages(msgid(int),message(varchar))
data in the table is as follows
msgid message
========= =======
1 v jameel
2 vjohn
3 $/vjohn
4...
hi all
what will be the mysql equivalent of the following query as PATINDEX is not used by mysql
select * from table1 where substring(msg1, PATINDEX ('%[a-zA-Z]%',msg1),1) = 'v'
as msg1 is my column name and v could be in upper case
thanks in advance
thanks pwise for your kind reply.
actually i have a table for voting
messages(messageid(int),message(varchar))
data in the table is as follows
messageid message
========= =======
1 v jameel
2 vjohn
3 /vjohn
4...
how can i make the select query to get the first alphabet in the string. for example my string look like as
"#@$%/;Please Help me"
i want to get the first alphabet 'P'. I dont want any thing before 'P'.
Advance Thanks for your help
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.