Answers for "cold fusion get first element of query row"

0

cold fusion get first element of query row

<cfscript>
	var result = query.execute().getResult();
	if (result.recordCount > 0) {
    	var ret = QueryGetRow(result, 1); //get first item of query result rows
        
        //do stuff
        
        return ret;
    }
</cfscript>
Posted by: Guest on August-10-2020

Code answers related to "cold fusion get first element of query row"

Browse Popular Code Answers by Language