C++中的MySQL语句出现Commands out of sync; you can't run this command now

img

img

这句SQL语句出现Commands out of sync; you can't run this command now
怎么解决?

参考
https://dev.mysql.com/doc/refman/8.0/en/commands-out-of-sync.html