hibernate5基础入门 Could not locate setter method for property Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'stu' Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] 【阅读全文】
很多人都知道SQL注入,也知道SQL参数化查询可以防止SQL注入,可为什么能防止注入却并不是很多人都知道的。本文主要讲述的是这个问题,也许你在部分文章中看到过这块内容,当然了看看也无妨。 首先:我们要了解SQL收到一个指令后所做的事情:具体细节可以查看文章:Sql Server 编译、重编译与执行计...【阅读全文】
undo实验(update的一致性读):--使用非sys用户进行会话I:create table t (x int,y int);insert into t values(1,1);commit;创建触发器:create or replace trigger t_bufferbefore update on t for each rowbegindbms_output.put_line ( 'old.x = '|| :old.x||' ,old.y = '||:old.y);dbms_outp...【阅读全文】
eXtremeDB除了通过API和SQL方式导入数据到数据库之外,还可以直接从csv文件中加载数据,例如: 点击(此处)折叠或打开insert into hist select * from '/home/test.csv' as hist where mod(seqnumber, %#)=%@;...【阅读全文】