|
-
Jun 30th, 2002, 08:36 PM
#1
Thread Starter
Lively Member
Beginning with a #
I want to have a number of links where you click on the letter and get all the records starting with that letter...no problem, but how do i get all the records that start with a number?
any help would be great
-
Jul 1st, 2002, 12:44 AM
#2
Stuck in the 80s
Maybe I'm not following here, but, the substr function to get the first character and then compare to the link text?
Maybe if you could explain a little more about the problem. I think I understand the scenario well enough.
-
Jul 1st, 2002, 01:48 PM
#3
Thread Starter
Lively Member
oh sorry....
basically it's a big list of bands, but some of them start with a number.
How would i do a SELECT * FROM TABLENAME WHERE the first character isnumeric?
-
Jul 1st, 2002, 06:15 PM
#4
PowerPoster
for the letter ones, use something like
Code:
SELECT * FROM table WHERE SUBSTRING(fieldname, 1, 1) = 'A'
for numbers, I think this will do
Code:
SELECT * FROM table WHERE SUBSTRING(fieldname, 1, 1) BETWEEN 0 AND 9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|