我必须在我的 F/W1 应用程序中使用查询的查询从查询中获取记录。我在coldfusion 10中运行它。我的查询如下,
<cfquery name="qryFormData" dbtype="Query">
Select * from qryFormfields where language = 'ENG'
</cfquery>
我收到了这个错误
ERROR!
An error occurred!
Action: locations.default
Error: Error Executing Database Query.
Type: Database
Details:
Query Of Queries syntax error.
Encountered "language. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition,
我做错了什么?任何帮助,将不胜感激。
我的查询很简单如下
<cfquery name="qryFormfields" datasource="#variables.dsn#">
SELECT cf.CustomFieldID, cfl.label,cfl.language,cf.Type FROM CustomFields cf
INNER JOIN CustomFieldLabels cfl ON cfl.CustomFieldID = cf.CustomFieldID
AND Entity = <cfqueryparam value="#arguments.tablename#" cfsqltype="cf_sql_varchar">
WHERE Language = <cfqueryparam value="#SupportedLangID.prefix#" cfsqltype="cf_sql_varchar">
AND SiteID = <cfqueryparam value="#arguments.SiteID#" cfsqltype="cf_sql_varchar">
</cfquery>