摘要:
create procedure sting_a(in x int,in y int)begin set @x1=y*(x-1); set @x2=CONCAT('select * from t_student order by stu_id',' limit ', @x1,',',y); prep 阅读全文
摘要:
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, 阅读全文
摘要:
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 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using MySql.Data.MySqlClient; using System.Data; namespace DBHelper { /// ///... 阅读全文
摘要:
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','男',... 阅读全文
摘要:
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; 阅读全文
摘要:
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... 阅读全文
摘要:
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 阅读全文