Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½«Ö¸¶¨µÄ±í/ÊÓͼÖеÄÊý¾Ýµ¼³öΪ html Îļþ

IF OBJECT_ID(N'dbo.p_ExportHtml') IS NOT NULL
    DROP PROC dbo.p_ExportHtml;
GO
/*-- == µ¼³ö±í/ÊÓͼÖеÄÊý¾ÝΪhtml Îļþ======================
´Ë´æ´¢¹ý³ÌÓÃÓÚ½«Ö¸¶¨µÄ±í/ÊÓͼÖеÄÊý¾Ýµ¼³öΪ html Îļþ
ÓÉÓÚÊÇʹÓô洢¹ý³Ì, Òò´ËÎļþĿ¼»ùÓÚ sql server ·þÎñÆ÷
´æ´¢¹ý³ÌÖлáʹÓÃxp_cmdshell µ÷ÓÃbcp À´Ð´Îļþ
Òò´Ë±ØÐë´ò¿ªxp_cmdshell ¹¦ÄÜ, ¿ÉÒÔʹÓÃÏÂÃæµÄ½Å±¾ÊµÏÖ
EXEC sp_configure N'show advanced options', 1 RECONFIGURE;
EXEC sp_configure N'xp_cmdshell', 1 RECONFIGURE;
---------------------------------------------------------
-- µ÷ÓÃʾÀý
EXEC dbo.p_ExportHtml
    @object_name = N'sys.objects',
    @file_name = N'c:\test.html';
---------------------------------------------------------
-- »·¾³ÒªÇó
ÊÊÓÃÓÚsql server 2005 »òÕ߸ü¸ßµÄ°æ±¾
-- ==== ×Þ½¨2008.11(ÒýÓÃÇë±£Áô´ËÐÅÏ¢) =============== */
CREATE PROC dbo.p_ExportHtml
    @object_name sysname,
    @file_name nvarchar(260),
    @title nvarchar(1000) = NULL -- html ±êÌâ, ΪNULLʱʹÓÃ@object_name
AS
SET NOCOUNT ON;
DECLARE
    @sql_field nvarchar(max),
    @sql_body nvarchar(max);
SELECT
    @sql_field = N'',
    @sql_body = N''
SELECT
    @sql_field = @sql_field
           + N' UNION ALL SELECT field_name = N' + QUOTENAME(C.name, N''''),
    @sql_body = @sql_body
           + N', [td/@align] = '
              + QUOTENAME(
                     CASE
                         WHEN T.name LIKE N'%int'
        


Ïà¹ØÎĵµ£º

htmlÔªËØÖÐtitle¡¢alt»»Ðз½°¸

·½Ê½Ò»£º
»ò
×÷»»Ðзû
·½Ê½¶þ£ºÖ±½ÓÔÚÔ´ÂëÖÐÇûسµ
¡¾½¨Òé¡¿ ²ÉÓ÷½°¸Ò»¡£
¡¾Ô´Âë¡¿
<a href="#" title="µÚÒ»ÐÐ&#10;µÚ¶þÐÐ&#13;µÚÈýÐÐ">·½Ê½Ò»£ºÊó±ê·ÅÔÚÎÒÉÏÃæ¿´Ò»ÏÂtitle</a>
<br />
<br />
<a href="#" title="µÚÒ»ÐÐ
µÚ¶þÐÐ
µÚÈýÐÐ">·½Ê½¶þ£ºÊó± ......

htmlÔöÐÐ

<script   language="javascript">  
  function   newRow()  
  {  
    var   tbl   =   document.all("mytbl");  
    var   row   = &nb ......

html Öбí¸ñ³¤¶È¹Ì¶¨

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Lan ......

html ÖÐcursorµÄÑùʽ


Êó±êµÄ¶àÖÖÑùʽ...
<P>&lt;a href="help.htm" style="cursor:hand"&gt;ÊÖ&lt;/a&gt;
&lt;a href="help.htm" style="cursor:text"&gt;Îı¾&lt;/a&gt;
&lt;a href="help.htm" style="cursor:MOVE"&gt;Ëĸö·½ÏòµÄ¼ýÍ·&lt;/a&gt;
&lt;a href="help.htm" st ......

¿ªÔ´µÄÍøÒ³×¥È¡ÏîÄ¿HTML Parser ½éÉÜ

HTML Parser is a Java library used to parse HTML in either a linear or nested fashion. Primarily used for transformation or extraction, it features filters, visitors, custom tags and easy to use JavaBeans. It is a fast, robust and well tested package.
code  download£ºhttp://sourceforge.net/pr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ