2015年3月27日

摘要: --------------------------------------------------------------------------------SELECT 姓名,--此处显示列名不能使用as性别 = CASE 性别 WHEN 0 THEN '女' ... 阅读全文
posted @ 2015-03-27 08:54 飞哥Penfield 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 注意:将游标封装在事务中可以防止操作不完整性======+脏读begin trybegin transactionDECLARE @Name varchar(10), @Sex bit, @Married bit, @Phone char(10), @ChineseSex char(2), @Chi... 阅读全文
posted @ 2015-03-27 08:41 飞哥Penfield 阅读(972) 评论(0) 推荐(0) 编辑

2015年3月19日

摘要: namespace WindowsFormsApp{ public partial class listview : Form { private void func() { listView1.Items.Clear(); ... 阅读全文
posted @ 2015-03-19 13:59 飞哥Penfield 阅读(179) 评论(0) 推荐(0) 编辑
摘要: private void listview_Load(object sender, EventArgs e) { string sql = string.Format("select LoginId,StudentName,UserStateId,Sex fro... 阅读全文
posted @ 2015-03-19 10:22 飞哥Penfield 阅读(135) 评论(1) 推荐(0) 编辑

2015年3月18日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;using Syste... 阅读全文
posted @ 2015-03-18 15:05 飞哥Penfield 阅读(252) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-03-18 11:40 飞哥Penfield 阅读(412) 评论(2) 推荐(0) 编辑

2015年2月17日

摘要: 不得不说GridView控件的功能确实很强大,一个简简单单的控件就可以把数据管理的很美。在这两天做的任务中碰到的一些GridView控件中遇到的问题进行总结;①:在GridView控件中随意显示数据库中的信息:GridView控件中有一个AutoGenerateColumns属性,它的作用就是控制G... 阅读全文
posted @ 2015-02-17 15:34 飞哥Penfield 阅读(161) 评论(0) 推荐(0) 编辑

2015年2月13日

摘要: 1 protected void btnLogin_Click(object sender, EventArgs e) 2 { 3 #region first version 4 string userName = this... 阅读全文
posted @ 2015-02-13 16:48 飞哥Penfield 阅读(214) 评论(2) 推荐(0) 编辑
摘要: atareader对象提供只读单向数据的快速传递,单向:您只能依次读取下一条数据;只读:DataReader中的数据是只读的,不能修改;相对地,DataSet中的数据可以任意读取和修改. 它有一个很重要的方法,是Read,是个布尔值,作用是前进到下一条数据,一条条的返回数据,当布尔值为真时执行,为假... 阅读全文
posted @ 2015-02-13 16:40 飞哥Penfield 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.使用数据库MyFirstAccessDB本实例使用的数据库名称为MyFirstAccessDB,版本为Microsoft Access 2003中文版。该数据库已经在1.4.2节中创建。2.设计页面UpdateData.aspx在应用程序Example_1_1中添加一个新的Web页面,命名为Up... 阅读全文
posted @ 2015-02-13 16:39 飞哥Penfield 阅读(120) 评论(0) 推荐(0) 编辑

导航