![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysqldebug
tshooting
努力打工,好好生活
展开
-
Mysql+使用CallableStatement对象调用存储过程和存储函数+java链接数据库
1.存储过程 (1)定义过程时,使用 DELIMITER $$ 命令将语句的结束符号从分号 ; 临时改为两个 $$,使得过程体中使用的分号被直接传递到服务器,而不会被客户端(如mysql)解释。 delimiter $$ create procedure find(in num1 int) begin select * from student where stuno = num1; en...原创 2020-03-20 22:50:11 · 273 阅读 · 0 评论 -
Mysql+BLOB(二进制文件mps jpg)类型插入读取,使用java链接数据库
1.创建表格 (1)因为插入的时候有 “Data too long for column 'xxx' at row 1”这种错误,用的longblob,又去查的博客,现在看来MediumBlob就差不多。 TinyBlob类型 :255B的数据; Blob类型 最大能容纳65KB的 MediumBlob类型 最大能容纳16MB的数据 LongBlob类型 最大能容纳4GB的...原创 2020-03-20 22:34:54 · 254 阅读 · 0 评论