$sth = $dbh->prepare('SELECT name, colour, calories
FROM fruit
WHERE calories < :calories AND colour = :colour');
$sth->bindParam(':calories', $calories, PDO::PARAM_INT);
$sth->bindParam(':colour', $colour, PDO::PARAM_STR, 12);
$sth->execute();Bu şekilde sorguları tipine göre sınırlandırabiliyorsun PDO ile.
Diğerleri için;
https://www.php.net/manual/en/pdo.constants.php
teşekkür ederim , diğer yöntemlerle ilgili örnek bulamadım.
ekleme , güncelleme ,silme gibi.