English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to get the names from the database that they start with "a" or a certain char.
how can i do that?

2007-01-01 15:43:16 · 2 answers · asked by aryaxt 3 in Computers & Internet Programming & Design

no im using php and mysql

2007-01-01 15:48:36 · update #1

2 answers

I would do it in the SQL query. The query would be similar to:
"SELECT * FROM table WHERE name LIKE 'a%'"

This would find all names that start with a in the field name in the table table. In SQL, a % is a wildcard, similar to *. Depending on the table setup, you may have to run a second query looking for A instead of a.

2007-01-01 15:49:12 · answer #1 · answered by Bryan A 5 · 0 0

Use microsoft access

2007-01-01 15:45:32 · answer #2 · answered by usa_fox1234 3 · 0 0

fedest.com, questions and answers