Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

query to query

$
0
0

it is more complicate to describe why i have to do this but it's the only way just an example below.

 

My query to give me anthing from the table when i do the query to query to get what i want but when i use the left string function then i got an error below.

Query Of Queries syntax error.

Encountered "left. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition,

 

thanks

 

<cfquery name="type" datasource="#dsn#">

select * from [dbo].[requestType]

</cfquery>

 

results look like

type:

=====

ADD

REMYU

RECD

 

I want to do the query to query to get the REMYU

 

<cfquery name="find" dbtype="query">

select * from type

where left(type,3) = 'rem'

</cfquery>

 

<cfdump var="#find#">


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>