ColdFusion - How to get output of a query

cfoutput - get output of a query


<!DOCTYPE html">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfoutput tag example: how to get output of a query in coldfusion</title>

<h2 style="color:Crimson">cfoutput Tag Example: Query</h2>

<cfquery name="qEmployee" datasource="cfdocexamples">
 SELECT Emp_ID, FirstName, LastName, Salary FROM EMPLOYEE

<table bgcolor="CadetBlue" cellpadding="0" cellspacing="0">
 <tr bgcolor="DarkCyan">
     <td><b>Emp ID</b></td>
     <td><b>First Name</b></td>
     <td><b>Last Name</b></td>
 <cfoutput query="qEmployee">

More ColdFusion examples