In SQL, these are the wildcard options:
% - match zero or more characters
_ - match a single character
[] - match one of a set of characters.
So your query would be:
<cfquery name="get" datasource="#application.datasource#">
select * from dic
where name like 'T%'
order by name
</cfquery>
Hope that helps,
Dimo.
----- Original Message -----
From: "Art Broussard" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 11:31 AM
Subject: Easy access question
> I want to search a dictionary table in an access database. I want to find
all records where the name starts with the letter T.
>
> <cfquery name="get" datasource="#application.datasource#">
> select * from dic
> where name like 'T*'
> order by name
> </cfquery>
>
> This should give me any record that has the first letter in name start
with T right? Wrong. : (
>
> What am I doing wrong???
>
> Art
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists