»áÔ±£º ÃÜÂ룺 ¡¡Ãâ·Ñ×¢²á | Íü¼ÇÃÜÂë | »áÔ±µÇ¼ ÍøÒ³¹¦ÄÜ£º ¼ÓÈëÊÕ²Ø ÉèΪÊ×Ò³ ÍøÕ¾ËÑË÷  
¼¼ÊõÎĵµ > Web¿ª·¢ > ASP
ÑÝʾ7ÐдúÂ뽫±í°´±í¸ñÏÔʾ
·¢±íÈÕÆÚ£º2002-09-28 00:00:00×÷ÕߣºÀ ³ö´¦£º  

ÏÂÃæ´úÂëÑÝʾ7ÐдúÂ뽫Êý¾Ý¿âÖÐµÄ±í°´±í¸ñÏÔʾ

set rst=Server.CreateObject("Adodb.Recordset")

rst.Open "select * from users", "DRIVER={SQL Server};server=llh;database=bbs;uid=sa;pwd=", 1, 3, adCmdText

tBody=rst.getString(2,,"</td><td>","</td></tr><tr><td>")

For i=0 to rst.fields.count-1

tHead=thead&"<td>"&rst.fields(i).name&"</td>"

next

response.write "<table border><tr>"&tHead&"</tr><tr><td>"&left(tBody,len(tBody)-8)&"</table>"

¡¾·µ»Ø¶¥²¿¡¿ ¡¾´òÓ¡±¾Ò³¡¿ ¡¾¹Ø±Õ´°¿Ú¡¿

¹ØÓÚÎÒÃÇ / ¸øÎÒÁôÑÔ / °æȨ¾Ù±¨ / Òâ¼û½¨Òé / ÍøÕ¾±à³ÌQQȺ   
Copyright ©2003- 2024 Lihuasoft.net webmaster(at)lihuasoft.net ¼ÓÔØʱ¼ä 0.00352