开发者

What is the most appropriate Coldfusion cfsqltype to use for MS SQL's uniqueidentifier field type?

开发者 https://www.devze.com 2022-12-15 03:29 出处:网络
When connecting from Coldfusion 8 to a MS SQL 2008 datasource, what Coldfusion cfsqltype should I use for a SQL column set to 开发者_开发问答\'uniqueidentifier\'.

When connecting from Coldfusion 8 to a MS SQL 2008 datasource, what Coldfusion cfsqltype should I use for a SQL column set to 开发者_开发问答'uniqueidentifier'.

<cfquery name="user" datasource="#ds#">
    SELECT id, username
    FROM users
    WHERE id = <cfqueryparam cfsqltype="WHAT_CF_SQL_TYPE_HERE?" value="#arguments.id#">
</cfquery>

Thanks!


CF_SQL_CHAR or CF_SQL_IDSTAMP

see: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_p-q_18.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号