当jdbc返回值类型对应的java类型是[B,那就表示返回值的类型比较模糊难以区分: BLOB类型是mysql数据库常用来存储,但是通过getBlob()方法获取值得时候会报错: 错误信息: java.lang.IllegalArgumentException: Can not set [B field yxm.zyf.love.entity.User.user_certify_pic to com.mysql.jdbc.Blob at sun.reflect.UnsafeFieldAccess
今天在看c++primer的时候,读到其中这样一段话: When we use an istream as a condition, the effect is to test the state of the stream. If the stream is validthat is, if it is still possible to read another input then the test succeeds. An istream becomes invalid when we
过程1:带返回值: 1 drop procedure if exists proc_addNum; 2 create procedure proc_addNum (in x int,in y int,out sum int) 3 BEGIN 4 SET sum= x + y; 5 end 然后,执行过程,out输出返回值: 1 call proc_addNum(2,3,@sum); 2 select @sum; 过程2:不带返回值: 1 drop procedure if exists proc