How to get the metadata information for coldfusion query object

GetMetaData() - get the metadata information for coldfusion query object

GetMetaDataQuery.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GetMetaData function example: how to get the metadata information for coldfusion query object</title>
</head>

<body>
<h2 style="color:Crimson">GetMetaData Function Example:Query</h2>

<cfquery name="qBooks" datasource="cfbookclub">
 SELECT BookID, Title FROM BOOKS
</cfquery>
<cfdump var="#qBooks#" label="qBooks">

<br />
<cfset BooksQueryMetaData=GetMetaData(qBooks)>
<cfdump var="#BooksQueryMetaData#" label="Books Query MetaData">
</body>
</html>






More ColdFusion examples