<HTML>
<HEAD>
<HTML>
<HEAD>
<meta httpequiv=ContentType content=text/html; charset=gb />
<TITLE>show HTML</TITLE>
<BODY>
<center>
<P>
<H>
<TABLE BORDER= cellpadding= cellspacing=>
<TR> <TH><B>公司名称</B></TH>
<TH><B>联系人</B></TH>
<TH><B>产品名称</B></TH>
<TH><B>产品名称</B></TH>
</TR>
<TR> <TD> Exotic Liquids </TD>
<TD ALIGN=RIGHT>Charlotte Cooper</TD>
<TD ALIGN=RIGHT>Chai</TD>
<TD ALIGN=RIGHT></TD>
</TR>
<TR> <TD> Exotic Liquids </TD>
<TD ALIGN=RIGHT>Charlotte Cooper</TD>
<TD ALIGN=RIGHT>Chang</TD>
<TD ALIGN=RIGHT></TD>
</TR>
<TR> <TD> Exotic Liquids </TD>
<TD ALIGN=RIGHT>Charlotte Cooper</TD>
<TD ALIGN=RIGHT>Aniseed Syrup</TD>
<TD ALIGN=RIGHT></TD>
</TR>
</TABLE>
</center>
</H>
</BODY>
</HTML>
运行此HTML文件可以看到结果如图
图 SQL SERVER查询结果输出到HTML页面
就和SQL语句查询的结果对应了这样我们就把查询语句输入到HTML页面了
[] [] []