如果我想在mysql中更改参数的情况下运行查询6次,我应该使用什么

如果我想在mysql中更改参数的情况下运行查询6次,我应该使用什么,mysql,Mysql,我需要用book2替换为book1到book6执行上述代码6次,您是否在MySQL命令行工具中运行查询?或者您正在使用某种编程语言连接到数据库并运行查询?我想在hostinger服务器上运行它。因为数据库是mysql。 select b.bookid, b.issuedate, b.returndate from bookdates b, bookissues e where exists (select 1 from bookdates where b.bookid = e.book2);

我需要用
book2
替换为
book1
book6

执行上述代码6次,您是否在MySQL命令行工具中运行查询?或者您正在使用某种编程语言连接到数据库并运行查询?我想在hostinger服务器上运行它。因为数据库是mysql。
select b.bookid, b.issuedate, b.returndate
from bookdates b, bookissues e
where exists (select 1 from bookdates where b.bookid = e.book2);