Skip to content

perl dbi

ghdrako edited this page Dec 13, 2023 · 8 revisions
sth.finish()

It's very rare that you would need to call it explicitly, since the database driver will call it for you when you've fetched all results from a SELECT. If you only want one row, use LIMIT 1 in your query; if your query already only returns one row, you shouldn't be calling finish at all.

Test

Clone this wiki locally