fstring in io.sql
- [ ] ref #29547
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

@lexy-lixinyu can you commit changes as suggested by @simonjayhawkins ? just pushed edits removing unintentional " " in two places. Thanks for the work on this @lexy-lixinyu, can you address the two last comments, and update your branch from master please? This is ready to be merged after it.

If you need help let us know. just pushed edits to address outstanding comments Thanks @lexy-lixinyu and @jbrockmendel 