更新时间:2023-09-03 14:13:58
为你的 id 使用 <cfqueryparam>
标签:
http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/tags-b20.htm
Use a <cfqueryparam>
tag for your id:
http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/tags-b20.htm
<cfquery name="rsRecord" datasource="DataSource">
SELECT * FROM Table
WHERE id =
<cfqueryparam value = "#url.id#"
CFSQLType = "CF_SQL_INTEGER">
</cfquery>