in reply to execute failed: called with 2 bind variables when 0 are needed
You would then list each variable in the order you have them as question marks in your querymy $variable = "E"; my $sql = 'SELECT crcp_cod_grupo, crcp_cod_prato FROM REST.dbo.CRCP_PR ATO WHERE crcp_cod_grupo = ?'; my $sth = $dbh->prepare($sql); $sth->execute($variable);
|
|---|