总结: 1.mybaits配置工2方面: i行为配置,如数据源的实现是否利用池pool的概念(POOLED – This implementation of DataSource pools JDBC Connection objects to avoid the initial connection and authentication time required to create a new Connection instance.This is a popular approach fo
看一道C++面试题: 给出下述代码,分析编译运行的结果,并提供3个选项: A.编译错误 B.编译成功,运行时程序崩溃 C.编译运行正常,输出10 class A { private: int value; public: A(int n){ value = n;} A(A other){ value = other.value; } void Print(){ std::cout << value << std::endl; } }; int main() { A a = 10
1.实现ruby中的多线程 # def test1 # n = 1 # if n > 10 # puts "test1结束" # else # while true # sleep 2 # puts n # n = n + 1 # end # end # end # # # def test2 # n = 100 # if n > 100 # puts "test2结束" # else # while true # sleep 2 # puts n #
Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合 string sqlstr="select * from tblname where name like :name"; var paramvalue = string.Format("%{0}%", keyword); object param = new { name= paramvalue }; var datas = conn.Query<TAXI_INFO>(s