RE: sth->do()



Loo, Peter # PHX wrote:
Hi All,

I need to issue commands such as ("CREATE TABLE", "DROP TABLE",
"ALTER TABLE", etc...), however, whenever I use sth->do($sqlString),
I get an error. I understand that using sth->do(), it goes through
the process of prepare and execute. With that, it is expecting a
returned value.

You should be using $dbh->do(), not $sth->do().

Philip
.



Relevant Pages