上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 102 下一页
摘要: Form1.csusingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading;namespaceWindowsApplication{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}classmyclass{//单参数构造publi 阅读全文
posted @ 2010-12-21 20:00 qanholas 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 在开发过程中,经常会遇到使用表变量和本地临时表的情况。下面是对二者的一个介绍:1.为什么要使用表变量表变量是从2000开始引入的,微软认为与本地临时表相比,表变量具有如下优点:a.与其他变量的定义一样,表变量具有良好的定义范围,并会被自动清除;b.在存储过程中使用表变量会减少存储过程重新编译的发生;c.表变量需要更少的锁请求和日志资源;d.可以在表变量上使用UDF,UDDT,XML。2.表变量的限制与临时表相比,表变量存在着如下缺点:a.在表变量上没有统计信息,查询优化器根据固定的预估值来选择执行计划,在数据很多的情况下,会导致查询优化器选择很差的执行计划;b.不能直接在表变量上创建索引,但可 阅读全文
posted @ 2010-12-15 10:09 qanholas 阅读(224) 评论(0) 推荐(0) 编辑
摘要: http://www.connectionstrings.com/包含以下数据库SQL Server 2008 SQL Server 2005 SQL Server 2000, 7.0 SQL Server Compact Edition Oracle IBM DB2 MySQL Sybase Advantage Database Server Sybase Adaptive Server Enterprise Informix Postgre SQL IBM UniVerse IBM UniData AS/400 (IBM iSeries) Progress Firebird Interba 阅读全文
posted @ 2010-12-09 12:41 qanholas 阅读(427) 评论(0) 推荐(0) 编辑
摘要: /*题目如何产生1万个编号,插入到表T(colvarchar(20))中,并且不能重复,编号只能从26个小写字母中取.*/--1.当时的写法select'a'ascolinto#tunionselect'b'unionselect'c'unionselect'd'unionselect'e'unionselect'f'unionselect'g'unionselect'h'unionselect'... 阅读全文
posted @ 2010-11-25 23:27 qanholas 阅读(7321) 评论(20) 推荐(5) 编辑
摘要: --创建表并填充数据createtableb_dist(idint,namevarchar(20),deptvarchar(20))insertintob_distvalues(1,‘abc‘,‘sales‘)insertintob_distvalues(2,‘abc‘,‘sales‘)insertin... 阅读全文
posted @ 2010-11-25 21:28 qanholas 阅读(416) 评论(0) 推荐(0) 编辑
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 102 下一页