上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页
摘要: create trigger ceshia1 after update on t_student for each ROWBEGINselect stu_id,stu_code,stu_name,stu_sex,age,stu_dept,NOW() into @v8,@v1,@v2,@v3,@v4, 阅读全文
posted @ 2016-04-24 20:51 尘梦 阅读(163) 评论(0) 推荐(0)
摘要: create trigger ce after update on t_student for each rowBEGIN select stu_id,stu_name,NOW() into @v,@v2,@time from t_student where stu_id=old.stu_id; i 阅读全文
posted @ 2016-04-24 12:52 尘梦 阅读(97) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using MySql.Data.MySqlClient; using System.Data; namespace DBHelper { /// ///... 阅读全文
posted @ 2016-04-22 10:47 尘梦 阅读(200) 评论(0) 推荐(0)
摘要: create procedure sp_sw2() begin declare error int default 0; declare continue handler for SQLEXCEPTION set error=1; START TRANSACTION; insert into t_student values('100','20169998','段天德1','男',... 阅读全文
posted @ 2016-04-22 10:18 尘梦 阅读(182) 评论(0) 推荐(0)
摘要: 假设A为1分钟B为2分钟C为5分钟D为10分钟 这个题 要把最慢的和最快的送过去 A和B过 A回来 3分钟 CD过 B回来 10+2=12分钟 AB过 2分钟 3+12+2=17分钟 第三和第四都不正确 而 第二个说了有些人偷了奶酪 如果正确的话 那表示 第一个人说对了 {5,4,3,2,1} 交换 阅读全文
posted @ 2016-04-21 13:12 尘梦 阅读(330) 评论(0) 推荐(0)
摘要: create function aa(a int,b int,c int) returns int begin declare max int; set max=a; if max<b then set max=b; end if; if max<c then set max=c; end if; 阅读全文
posted @ 2016-04-19 11:29 尘梦 阅读(132) 评论(0) 推荐(0)
摘要: drop procedure if exists teach.num_from_student; create procedure teach.student_a(in dept_name varchar(20),out count_num int) begin select count(*) into count_num from t_student where stu_dept=dept_n... 阅读全文
posted @ 2016-04-18 10:43 尘梦 阅读(139) 评论(0) 推荐(0)
摘要: DROP PROCEDURE IF EXISTS teach.sp_Score_Level; CREATE PROCEDURE `sp`() BEGIN declare cur_stu_id int; declare cur_course_id int; declare cur_grade varchar(10); DECLARE done INT DEFAULT 0; d... 阅读全文
posted @ 2016-04-18 09:48 尘梦 阅读(185) 评论(0) 推荐(0)
摘要: create PROCEDURE b2(in c_year int,in co int)begin declare num int; if exists(select * from class where class="c_year") then update class set code=code 阅读全文
posted @ 2016-04-17 11:26 尘梦 阅读(451) 评论(0) 推荐(0)
摘要: private string Gen_code() { string rds = ""; using (MySqlConnection conn = new MySqlConnection("server = localhost;User Id=root;password=;database=tea 阅读全文
posted @ 2016-04-15 11:29 尘梦 阅读(516) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页