Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple SQL question

Status
Not open for further replies.

meeble3

Programmer
Nov 8, 2004
52
GB
Hello.

I am making an SQL query for Access and I wanted to select all records that have the three letters 'LON' in that order in a particular field.

I thought the query was


SELECT * from table where fieldname LIKE '%LON%'


but this doesn't work.

What is the correct syntax?

Cheers

James
 
For Access SQL Syntax it should be:
[tt]
SELECT * from table where fieldname LIKE '*LON*';
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top