faqts : Computers : Databases : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

58 of 74 people (78%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

how can i select the records where the First Letter is 'D' from the database?

Feb 13th, 2008 00:22
dman, Mattias Westberg, Marc Tomlinson, http://sturly.com


Use the LIKE command. Eg: SELECT * FROM user WHERE firstname LIKE "D%";

"user" is the table and "firstnamn" the column