从Coldfusion 8连接到MS SQL 2008数据源时,我应该将什么Coldfusion cfsqltype用于设置为'uniqueidentifier'的SQL列。
<cfquery name="user" datasource="#ds#">
SELECT id, username
FROM users
WHERE id = <cfqueryparam cfsqltype="WHAT_CF_SQL_TYPE_HERE?" value="#arguments.id#">
</cfquery>
谢谢!
答案 0 :(得分:5)
CF_SQL_CHAR或CF_SQL_IDSTAMP
请参阅:http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_p-q_18.html