摘要: /// <summary> /// 获取汉字的全拼音 /// </summary> /// <param name="x">传汉字的字符串</param> /// <returns>汉字的字符串的拼音</returns> public string GetSpell(string x) { int[ 阅读全文
posted @ 2013-06-19 15:37 深南大道 阅读(346) 评论(0) 推荐(0)
摘要: -------------------------------------------------------------- WITH Emp AS ( SELECT E.Dept_Id , Count(*) Emp_Count FROM Employees E GROUP BY E.Dept_Id ) SELECT D.Dept_Name ... 阅读全文
posted @ 2013-06-07 09:54 深南大道 阅读(217) 评论(0) 推荐(0)
摘要: insert into city --找出Hotel表中不存在于city表中的城市名 select DISTINCT rtrim(ltrim(cityname)) from Hotel e WHERE not EXISTS (SELECT * FROM city eb WHERE eb.cityname=e.cityname) -----------------------------... 阅读全文
posted @ 2013-06-06 16:44 深南大道 阅读(173) 评论(0) 推荐(0)
摘要: /* 导入/导出 Excel 的基本方法 */ 从Excel文件中,导入数据到SQL数据库中,很简单,直接用下面的语句: /* */ --如果接受数据导入的表已经存在 insert into 表 select * from OPENROWSET('MICROSOFT.JET.OLEDB.4.0' , 阅读全文
posted @ 2013-06-01 11:05 深南大道 阅读(851) 评论(0) 推荐(0)
摘要: --1. 多个汇总列转换为行记录。 /*-- 下面的示例将列Quarter水平显示,统计每年(列Year)的数据(列Quantity)合计 平均价格(列Price)。在处理平均价格和总金额时,由于聚合函数会把处理结果转换为float 所以使用了CAST函数将数据转换为decimal并保留两位小数。 阅读全文
posted @ 2013-06-01 10:35 深南大道 阅读(145) 评论(0) 推荐(0)
摘要: --以下代码生成的编号长度为12,前6位为日期信息,格式为YYMMDD,后6位为流水号。 --创建得到当前日期的视图 CREATE VIEW v_GetDate AS SELECT dt=CONVERT(CHAR(6),GETDATE(),12) GO --得到新编号的函数 CREATE FUNCT 阅读全文
posted @ 2013-06-01 10:21 深南大道 阅读(445) 评论(0) 推荐(0)
摘要: -- ============================================= -- 电子商务模板 -- ============================================= USE master GO -- Drop the database if it already exists IF EXISTS ( SELECT n... 阅读全文
posted @ 2013-05-31 21:50 深南大道 阅读(227) 评论(0) 推荐(0)
摘要: /* SQL与ORACLE的外键约束--级联删除 最近软件系统中要删除一条记录,就要关联到同时删除好多张表,他们之间还存在着约束关系.所以考虑到在创建表时加上约束关系,具体如下: SQL的外键约束可以实现级联删除与级联更新; ORACLE则只充许级联删除。 SQL级联删除与级联更新使用格式: */ 阅读全文
posted @ 2013-05-28 17:05 深南大道 阅读(1055) 评论(0) 推荐(0)
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JquerySort.aspx.cs" Inherits="demo_JquerySort" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 阅读全文
posted @ 2013-05-17 12:12 深南大道 阅读(500) 评论(0) 推荐(0)
摘要: Sel1 取值后格式化 {0:d}小型:如2005-5-6 {0:D}大型:如2005年5月6日 {0:f}完整型 2 当前时间获取 DateTime.Now.ToShortDateString 3 取值中格式化 SQL Server里面可能经常会用到的日期格式转换方法: sql server使用c 阅读全文
posted @ 2013-05-11 12:27 深南大道 阅读(151) 评论(0) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { Response.ContentType = "text/vnd.wap.wml"; StringBuilder builder = ne... 阅读全文
posted @ 2013-05-07 17:06 深南大道 阅读(182) 评论(0) 推荐(0)
摘要: 在dt存在大量数据的时候,给dt指定主键列,可以几何级提升dt.Select筛选数据的速度 阅读全文
posted @ 2013-05-02 10:10 深南大道 阅读(173) 评论(0) 推荐(0)
摘要: Oracle10g的创建用户名 1.linux下oracle的启动 以oracle身份登录 启动 lsnrctl start 登录 sqplus /nolog 连接数据库 connect /as sysdba 启动数据库 startup 关闭数据... 阅读全文
posted @ 2013-04-19 19:29 深南大道 阅读(541) 评论(0) 推荐(0)
摘要: Jquery Uploadify上传带进度条,且多参数 用户名: 相册名: 上传| 取消上传 using System; using System.Web; using Syste... 阅读全文
posted @ 2013-04-17 09:16 深南大道 阅读(173) 评论(0) 推荐(0)
摘要: Oracle数据库备份(导出)步骤: 1. Oracle数据库导出利用命令 exp username/password@oracledatabase,三个参数分别是用户名,密码和数据库 2. 导出文件: EXPDAT.DMP> c:\data.dmp 选择文件的数据路径 3. 要导出... 阅读全文
posted @ 2013-04-15 15:30 深南大道 阅读(485) 评论(0) 推荐(0)
摘要: using System; using System.Data;using System.Collections;using System.Collections.Generic;using System.Configuration; using System.Web; using MSXML2... 阅读全文
posted @ 2013-04-15 10:11 深南大道 阅读(157) 评论(0) 推荐(0)
摘要: Jquery示例 第1章-认识jQuery 1.1-JavaScript和JavaScript库 1.2-加入jQuery 1.3-编写简单jQuery代码 1.4-jQuery对象和DOM对象 1.5-解决j... 阅读全文
posted @ 2013-04-12 16:02 深南大道 阅读(126) 评论(0) 推荐(0)
摘要: 参数化提交SQL语句和拼接SQL语句安全性分析 SQL注入 简单对比分析 用户名: 密码: ... 阅读全文
posted @ 2013-04-12 10:16 深南大道 阅读(332) 评论(0) 推荐(0)
摘要: using System; using System.Data; using System.Data.Common; using System.Configuration; namespace MSCL { /// /// DbHelper通用数据库类 /// ... 阅读全文
posted @ 2013-04-11 13:38 深南大道 阅读(336) 评论(0) 推荐(0)
摘要: /// /// 附加数据库方法 /// /// 连接数据库字符串,连接master系统数据库 /// 数据库名字 /// 数据库文件MDF的路径 /// 数据库文件LDF的路径 /// 安装目录 private vo... 阅读全文
posted @ 2013-04-10 13:49 深南大道 阅读(472) 评论(0) 推荐(0)
摘要: 我的空间我做主,有问题请留言! 点击复制上面内容 ... 阅读全文
posted @ 2013-04-08 17:01 深南大道 阅读(135) 评论(0) 推荐(0)
摘要: string strxml = "121122111222"; DataSet ds = new DataSet(); Stream stream = new MemoryStream(Encoding.Default.GetBytes... 阅读全文
posted @ 2013-04-08 15:12 深南大道 阅读(268) 评论(0) 推荐(0)
摘要: /// /// POST提交XML文件获取返回数据 /// /// 网址 /// XML数据 /// private string PostXml(string url, string strPost) { string re... 阅读全文
posted @ 2013-04-08 15:03 深南大道 阅读(963) 评论(0) 推荐(0)
摘要: 1、.net程序里面需要引用文件Intelligencia.UrlRewriter 2、Web.config里面进行配置,大致如下: 3、IIS配置,需要配置两个地方 选择站点->属性->主目录->配置->这... 阅读全文
posted @ 2013-04-06 18:08 深南大道 阅读(206) 评论(0) 推荐(0)
摘要: 安装环境:服务器window2000/2003 数据库SQL2005/2008 微软net framework 2.0 EM企业通是基于.net 2.0框架C#语言编写的即时消息软件(服务器和客户端)。支持上百万用户的连接,数据库采用SQL Server 2005及以上版本。客户端采用T... 阅读全文
posted @ 2013-04-05 07:15 深南大道 阅读(544) 评论(0) 推荐(0)
摘要: #region /// /// 开机启动项 /// /// 是否启动 /// 启动值的名称 /// 启动程序的路径 Application.ExecutablePath ... 阅读全文
posted @ 2013-04-03 09:59 深南大道 阅读(328) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text... 阅读全文
posted @ 2013-04-03 09:41 深南大道 阅读(721) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using Syste... 阅读全文
posted @ 2013-04-03 08:44 深南大道 阅读(575) 评论(0) 推荐(0)
摘要: 1、 在vs2010 选择“新建项目”----“其他项目类型”----“Visual Studio Installerà“安装项目”: 命名为:Setup1 。 这是在VS2010中将有三个文件夹, 1.“应用程序文件夹”表示要安装的应用程序需要添加的文件; 2.“用户的... 阅读全文
posted @ 2013-04-02 16:53 深南大道 阅读(455) 评论(0) 推荐(0)
摘要: SoftReg类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Management; namespace SoftRegis... 阅读全文
posted @ 2013-04-01 10:40 深南大道 阅读(375) 评论(0) 推荐(0)