The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
counting the number of occurences johjoh Shell Programming and Scripting 3 04-28-2009 06:14 AM
Perl - Count occurences TimHortons Shell Programming and Scripting 22 01-31-2009 01:30 AM
no of occurences of q word Satyak Shell Programming and Scripting 6 09-29-2008 02:38 AM
occurences of words vanitham Shell Programming and Scripting 3 09-24-2008 04:53 AM
How to find all occurences of word? vanitham Web Programming, Web 2.0 and Mashups 0 09-06-2008 05:35 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-09-2009
vanitham vanitham is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 56
Retrieve all matches of occurences of words

Hi,

I have rows like this.

Code:

Retractor muscle (PRM) of Helix pomatia

Genetic characterization of a prm- mutant

Values of PRM data.

Expression pattern of prmt5 in adult fish.

PRMT-5 negatively regulates DNA

genetic fusions of prM-E protein

Methylation of Xilf3 by Xprmt1b alters its DNA.

protein arginine methyltransferase AtPRMT10
If user specifies "prm*" I want first 6 rows to be selected.

How to write a MySQL query such that first 6 rows are retrieved??

The output should be like this:

Code:

Retractor muscle (PRM) of Helix pomatia

Genetic characterization of a prm- mutant

Values of PRM data.

Expression pattern of prmt5 in adult fish.

PRMT-5 negatively regulates DNA

genetic fusions of prM-E protein
How to retrieve all the variations of prm (i.e if user specifies prm*)?

Any ideas???

How can i do this???

Regards
vanitha
  #2 (permalink)  
Old 07-15-2009
mobi mobi is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 1
I would try using SELECT with LIKE '%x%' and LIMIT to the SQL query, for string comparisons you can check this: MySQL :: MySQL 6.0 Reference Manual :: 11.4.1 String Comparison Functions
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0