QueryExecute 上的 CFSQLType 是什么
What are the CFSQLType on QueryExecute
当我看
QueryExecute ("select from Artists where artistid=? and country=?",
[1, "USA"], {datasource="cfartgallery"});
我想知道 artistid
是否像
一样被查询
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="1">
来自
https://wikidocs.adobe.com/wiki/display/coldfusionen/QueryExecute
If you need to provide additional attribute as a Query parameter (like
CFSQLType, list, and separator), you can pass these as struct against
that column name.
Example 2
QueryExecute("select from Employee where country=:country
and citizenship=:country",
{country={value='USA', CFSQLType='CF_SQL_CLOB', list=true}});
https://wikidocs.adobe.com/wiki/display/coldfusionen/QueryExecute
当我看
QueryExecute ("select from Artists where artistid=? and country=?",
[1, "USA"], {datasource="cfartgallery"});
我想知道 artistid
是否像
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="1">
来自 https://wikidocs.adobe.com/wiki/display/coldfusionen/QueryExecute
If you need to provide additional attribute as a Query parameter (like CFSQLType, list, and separator), you can pass these as struct against that column name.
Example 2
QueryExecute("select from Employee where country=:country and citizenship=:country", {country={value='USA', CFSQLType='CF_SQL_CLOB', list=true}});
https://wikidocs.adobe.com/wiki/display/coldfusionen/QueryExecute