Home > Database > Mysql Tutorial > java-QueryRunner qr = TxQueryRunner();

java-QueryRunner qr = TxQueryRunner();

WBOY
Release: 2016-06-06 09:34:29
Original
1819 people have browsed it

javaqrsqlmysql

1.TxQueryRunner qr = new TxQueryRunner();
2.QueryRunner qr = new TxQueryRunner();
3.QueryRunner qr = new QueryRunner();

你们好,我诚恳的想问几个问题:
第一 :上面这三个有什么使用和定义上的区别(详细点).
第二 :我在项目里面用的 QueryRunner qr = new TxQueryRunner();
但是老提示错误,后面我想了想是不是上面的这三个可以任意用的可以吗 ? 还是怎样?
希望能得到详细点的答案谢谢.

QueryRunner qr = new TxQueryRunner(); //**TxQueryRunner 下面提示红线.**
qr.update(sql,params); //执行sql ,不提供连接池
//内部使用JDBCUtils

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template