更新时间:2023-01-01 13:02:31
不要在线程之间使用相同的连接.每个连接只能执行一个命令.为每个线程创建一个连接.我建议创建一个帮助器类,以使您更轻松.
Don't use the same connection across threads. Only one command can be executed per connection. Create a connection for each thread. I'd suggest making a helper class to make this easier for you.