• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

MySQL query

SELECT * FROM table WHERE name like 'b%'

This will echo all results where the field called name that begins with the letter b.
 
if you want to limit the amount of results then add LIMIT 0,20 to the end.. this limits it to 20 results
 
I think the best you can do is get a book about SQL and read it there, it'll be more helpfull to you.
I recommend:

Teach Yourself SQL in 24 Hours
by Stephens and Plew.
Published by sams.

Altho it's not mySQL specific, you'll find it very helpfull.
 
Back
Top