Hi, Is there a mysql statement which will allow me to pull all the fields starting with A from a table? Thanks in advance for any help.
Something like: SELECT columns FROM my_table WHERE LEFT(column_name,1) = 'a'; or SELECT columns FROM my_table WHERE LEFT(column_name,1) = 'A'; If there are mixed cases you may need to use this. Try the first query before this one, as this would have slightly higher overhead. SELECT columns FROM my_table WHERE LOWER(LEFT(column_name,1)) = 'a';