2012年5月19日
摘要: PIVOT用于将列值旋转为列名(即行转列),在SQL Server2000可以用聚合函数配合CASE语句实现PIVOT的一般语法是:PIVOT(聚合函数(列) FOR 列 in (…) )AS P完整语法:table_sourcePIVOT(聚合函数(value_column)FOR pivot_columnIN(<column_list>))UNPIVOT用于将列明转为列值(即列转行),在SQL Server 2000可以用UNION来实现完整语法:table_sourceUNPIVOT(value_columnFOR pivot_columnIN(<column_list 阅读全文
posted @ 2012-05-19 18:45 Sam_Zhang 阅读(124) 评论(0) 推荐(0)
  2010年10月28日
摘要: 一、图片上加文字://using System.Drawing; //using System.IO; //using System.Drawing.Imaging; private void AddTextToImg(string fileName,string text) { if(!File.Exists(MapPath(fileName))) { throw new FileNot... 阅读全文
posted @ 2010-10-28 10:20 Sam_Zhang 阅读(1485) 评论(0) 推荐(0)
  2010年4月11日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"&... 阅读全文
posted @ 2010-04-11 21:41 Sam_Zhang 阅读(218) 评论(0) 推荐(0)
  2010年4月9日
摘要: 1.以下为Default.aspx代码:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w... 阅读全文
posted @ 2010-04-09 23:45 Sam_Zhang 阅读(668) 评论(0) 推荐(0)