The other difference is what's returned. For example if you want to know the names of the columns, you need to use prepare() to get an $sth to use with $sth->{NAME}.
As others have said, do() supports placeholders, so that isn't a reason to avoid it.
In reply to Re: DBI prepare() vs do() usage
by jZed
in thread DBI prepare() vs do() usage
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |