| | |
Critical problem "Like"
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2009
Posts: 11
Reputation:
Solved Threads: 0
hi all Database Masters
Here i have suffer one critical issue,i have two column a and b,
Table name : Student
"A" "B"
"1" "SAntOsh"
"2" "SAuraV"
"3" "SAriya"
"4" "SAnju"
"5" "SAthiYa"
These are the sample records from my Table field. The "B" column always start with 'SA', the problem now in column B that has capital letter and I need to sort out all B that only has CAPITAL letter inside the letter and the out put will be displayed like this
A B
"1" "SAntOsh"
"2" "SAuraV"
"5" "SAthiYa"
Please help me out for this question
Thanks in Advance
Here i have suffer one critical issue,i have two column a and b,
Table name : Student
"A" "B"
"1" "SAntOsh"
"2" "SAuraV"
"3" "SAriya"
"4" "SAnju"
"5" "SAthiYa"
These are the sample records from my Table field. The "B" column always start with 'SA', the problem now in column B that has capital letter and I need to sort out all B that only has CAPITAL letter inside the letter and the out put will be displayed like this
A B
"1" "SAntOsh"
"2" "SAuraV"
"5" "SAthiYa"
Please help me out for this question
Thanks in Advance
•
•
Join Date: Aug 2007
Posts: 165
Reputation:
Solved Threads: 18
•
•
•
•
... I need to sort out all B that only has CAPITAL letter inside the letter and the out put will be displayed like this
A B
"1" "SAntOsh"
"2" "SAuraV"
"5" "SAthiYa"
Please help me out for this question![]()
Thanks in Advance
MySQL Syntax (Toggle Plain Text)
SELECT * FROM myTable WHERE myField REGEXP 'CAPS.*[A-z]';
•
•
Join Date: Apr 2009
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
You need a regular expression. Something like this will match rows that contain at least one capital letter in the remainder of the field:
MySQL Syntax (Toggle Plain Text)
SELECT * FROM myTable WHERE myField REGEXP 'CAPS.*[A-z]';
hi Fest3er
Thanks for giving the reply
but when I try which querry you send me but it doesn't give the out put
sql Syntax (Toggle Plain Text)
SELECT * FROM student WHERE b REGEXP 'CAPS.*[A-z]';
Please help me out.
thanks
Last edited by peter_budo; May 11th, 2009 at 7:01 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
•
•
Join Date: Aug 2007
Posts: 165
Reputation:
Solved Threads: 18
•
•
•
•
hi Fest3er
Thanks for giving the reply
but when I try which querry you send me but it doesn't give the out put
select * from student where b regexp 'CAPS.*[A-z]';
Please help me out.
thanks

The regular expression needs to be a pattern that matches your data, not the fictitious data in my fictitious table. That bit of learning is left as an exercise for the student (you).
![]() |
Similar Threads
- Installing Windows 98 On VMware. Floppy problem (Windows 95 / 98 / Me)
- "Critical Stop" sound after XP Pro loads (Windows NT / 2000 / XP)
- Facing the problem on "RedirectFromLoginPage" (VB.NET)
- "Save Target As.." isn't working in IE6 (Web Browsers)
- IE problem with "about:blank" & "search for..." (Viruses, Spyware and other Nasties)
Other Threads in the MySQL Forum
- Previous Thread: Mysql Connector ODBC 3.51 on remote machine
- Next Thread: Query 3 tables with a condition
| Thread Tools | Search this Thread |
Tag cloud for MySQL
1 agplv3 alfresco amazon api artisticlicense aws bizspark camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count crm data database design developer development distinct drupal dui ec2 email enter enterprise error facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip join journalism keyword kickfire laptop legal license licensing linux maintenance mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating query referencedesign saas search select sharepoint simpledb sourcecode spotify sql sugarcrm techsupport thunderbird update virtualization





