我要如何获取到一个query执行的sql语句
1个回答
展开全部
查看内容<cfsetname="e"<cfqueryname="getIt"datasource="cfartgallery"result="result"
selectartistidfromartists
wherelastnamelike<cfqueryparamcfsqltype="cf_sql_varchar"value="%#name#%"maxlength="255"</cfquery<cfdumpvarvar="#getIt#"<cfdumpvarvar="#result#"<cfdumpvarvar="#result.sql#"
<cfsetname="e"
<cfqueryname="getIt"datasource="cfartgallery"result="result"
selectartistidfromartists
wherelastnamelike<cfqueryparamcfsqltype="cf_sql_varchar"value="%#name#%"maxlength="255"
</cfquery
selectartistidfromartists
wherelastnamelike<cfqueryparamcfsqltype="cf_sql_varchar"value="%#name#%"maxlength="255"</cfquery<cfdumpvarvar="#getIt#"<cfdumpvarvar="#result#"<cfdumpvarvar="#result.sql#"
<cfsetname="e"
<cfqueryname="getIt"datasource="cfartgallery"result="result"
selectartistidfromartists
wherelastnamelike<cfqueryparamcfsqltype="cf_sql_varchar"value="%#name#%"maxlength="255"
</cfquery
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询