GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Jan-2009, 21:51
chef chef is offline
New Member
 
Join Date: Jan 2009
Posts: 7
chef is on a distinguished road

is way can mysql to print out data name start from "A"?


is any way make mysql to print out data name only start from "A"?
  #2  
Old 23-Jan-2009, 05:29
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: is way can mysql to print out data name start from "A"?


If you want people here to help you out, you have to put some effort into your questions. Be very clear what you want because I don't want to assume all the time.

I am thinking that you want the SQL query to search for all names that start with "A"?

Code:
SELECT `name_first`, `name_last` FROM `my_table` WHERE `name_last` LIKE "A%"

Something like that should do the trick I think. I am not sure but I think MySQL searches TEXT & VARCHAR fields case-insensitively i.e. "A%" or "a%", it doesn't matter. Someone correct me if I am wrong.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a mathematical formula for this recursion? transgalactic C Programming Language 8 12-Oct-2008 08:43
Memory leak when nothing is happening... How can I even debug this ? Algar MS Visual C++ / MFC Forum 10 19-Nov-2007 08:17
Asynchronous transfer question crystalattice Miscellaneous Programming Forum 2 24-Jan-2007 21:39
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 14:12
Guestbook error BobbyDouglas Web Design Forum 1 16-Oct-2003 23:17

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:04.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.