我有一个PHP脚本将新部件插入postgres数据库.我想在创建之前检查零件是否存在.我怎样才能做到这一点.我使用通常的INSERT INTO子句.
php postgresql
php ×1
postgresql ×1