我有一个CFQUERY拉三列。以下CFSELECT允许用户根据“显示”参数从各种结果中进行选择,并将该值设置为“值”参数。 我想将该记录的第三个未使用的值传递给将在以后的查询中使用的变量。我无法将'value'字段设置为我需要的列,因为在此查询之后的查询中需要该值(查询基于上一个下拉选择填充)。 有没有办法做到这一点?以某种方式让CFSELECT获得2个独立的值? SubRegionName is
我想建立一个动态SQL语句与这一行 <cfset SQL = "SELECT url, MONTH(event_date) AS months, YEAR(event_date) AS year, event_date, title from events where title LIKE '%#form.event_name#%' ">
<cfquery name="results" >
我用一个HQL查询得到一束状态的对象,像这样: <cfquery name="LOCAL.qStates" dbtype="hql">
from States where countryID = #ARGUMENTS.countryID#
order by name asc
</cfquery>
这工作得很好。不过,我从小就很好,我想用cfqueryparam,理想像这样