摘要: int KeChengHao = int.Parse(this.textBox1.Text.Trim()); System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection("Data Source=127.0.0.1;Initial Catalog=Student;Use... 阅读全文
posted @ 2008-03-01 23:34 阿春 阅读(159) 评论(0) 推荐(0)
摘要: //// delete from 课程表 where 课程号=1 or 1=1 string sql = this.textBox1.Text.Trim(); System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection("Data Source=... 阅读全文
posted @ 2008-03-01 23:33 阿春 阅读(164) 评论(0) 推荐(0)
摘要: //exec Delete_kc 6 int KeChengHao = int.Parse(this.textBox1.Text.Trim()); System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection("Data Source=127.0.... 阅读全文
posted @ 2008-03-01 23:31 阿春 阅读(185) 评论(0) 推荐(0)
摘要: create database stu use stu create table Table_1(学号 int null,姓名 nvarchar(50) null,年龄 int null,系别 nvarchar(50) null) create table Table_3(学号 int IDENTITY(1,1) PRIMARY KEY,姓名 nvarchar(50) null,年龄 int nu... 阅读全文
posted @ 2008-03-01 19:53 阿春 阅读(184) 评论(0) 推荐(0)
摘要: 1.CREATE PROCEDURE Delete_kc @课程号 int AS BEGIN delete from 课程表 where 课程号=@课程号 END exec Delete_kc 6 (执行存储过程) 2. alter修改存储过程 ALTER PROCEDURE Insert_kc @课程名 varchar(20) AS BEGIN inser... 阅读全文
posted @ 2008-03-01 19:39 阿春 阅读(244) 评论(0) 推荐(0)
摘要: select 学号, 姓名, case when(性别=0) then '男' else '女' end 性别, 年龄 from 学生信息 阅读全文
posted @ 2008-03-01 12:34 阿春 阅读(699) 评论(0) 推荐(0)