473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Search for entries starting with a non-letter?

We're trying to make a search form, and are wanting to create links for
all the letters a person can click on and will bring up all entries
that start with that letter.
That part is easy:
.... WHERE field LIKE '$letter%'

But we'd like to also have one a person can click on for numbers and
punctuation.
Is there a built-in mySQL querey component where you can search for
entries in a column that start with a non-letter?

Thanks for any feedback!
-Liam

Jan 26 '06 #1
2 2095
<ne**@celticbear.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Is there a built-in mySQL querey component where you can search for
entries in a column that start with a non-letter?


I'd use the regular expression matching predicates implemented in MySQL.

For example,
.... WHERE someColumn NOT RLIKE '^[[:upper:]]'

See RLIKE in this page:
http://dev.mysql.com/doc/refman/5.0/...-matching.html
and reference for regular expression syntax in MySQL in this page:
http://dev.mysql.com/doc/refman/5.0/en/regexp.html

Regards,
Bill K.
Jan 27 '06 #2
Bill Karwin wrote:
<ne**@celticbear.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Is there a built-in mySQL querey component where you can search for
entries in a column that start with a non-letter?


I'd use the regular expression matching predicates implemented in MySQL.

For example,
... WHERE someColumn NOT RLIKE '^[[:upper:]]'


Ah! I had no idea you could do that in mySQL. almost like using a Perl
regex.
And I see, you can use REGEX in mySQL as well. =)
Thanks for the clue-by-four!
-Liam

Jan 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fabio | last post by:
Hello, does anyone know what could be wrong? There's a lot of similar entries in the SQL Server current log: 2004-01-21 17:54:00.01 spid57 Starting up database 'DB_NAME' 2004-01-21...
5
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine...
0
by: John J | last post by:
Thanks for the help in my previous thread, I was able to solve the problem by using some code I'd written into another function. For anyone interested I've included the working code in my last...
1
by: John J | last post by:
I'm currently writing 3 classes that will accept race entries for yachts and perform various functions on them. Below is the code from 2 classes (Race.cpp and Entry.cpp). I've mostly finished these...
5
by: pembed2003 | last post by:
Hi all, I need to write a function to search and replace part of a char* passed in to the function. I came up with the following: char* search_and_replace(char* source,char search,char*...
8
by: Huihong | last post by:
Please check out our newly released source code search engine here, http://www.codase.com e.g., search socket method call,...
4
by: James | last post by:
Why does my LDAP query from a C# console app limit its results to 1000? When I run the same query from a vb script I get over 6000 results. I have tried to set the SearchRequest.SizeLimit to a...
2
by: Sriram | last post by:
Hi, i am developing a search page, basically using datagrid. i have given a column as hyperlink so that when the user clicks on it, it gives the details of the selected item in a seperate page....
2
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. Is there a way to start, pause and resume a recurrsive search exactly where you left off, say in the registry programmatically? -- Michael Bragg,...
1
by: Reef81 | last post by:
Does anyone know a way to have the search parameters displayed in the query or report? For example, if I set up a parameter to search all entries in my table, is there a way to have the search...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.