开发者

What is the syntax for concatenating in cfquery with access db

开发者 https://www.devze.com 2023-02-17 05:05 出处:网络
So, I\'ve looked all over the web for this simple answer...and I can\'t find it. I am trying to search an access DB via coldfusion query.

So, I've looked all over the web for this simple answer...and I can't find it.

I am trying to search an access DB via coldfusion query.

<cfquery name = "x" datasource = "cassupport_computers">
SELECT last, first, dept, location, purchasedate, (last + ' ' + first +开发者_Go百科 ' ' + dept + ' ' + location + ' ' + purchasedate AS searchs)
FROM cas_computers
WHERE searchs like '%#form.searchfield#%'
</cfquery>

What am I doing wrong? x:


<cfquery name = "x" datasource = "cassupport_computers">
SELECT last, first, dept, location, purchasedate, last & ' ' & first & ' ' & dept & ' ' & location & ' ' & purchasedate AS searchs
FROM cas_computers
WHERE searchs like '%#form.searchfield#%'
</cfquery>
0

精彩评论

暂无评论...
验证码 换一张
取 消