PostgreSQL:
create table t(c real);
PHP PDO:
$sql= 'insert into t (c) values (:c)';
$stmt = $dbh->prepare ( $sql );
$stmt->bindParam ( ':c',-0.06 );
$stmt->execute ();
输出
Erreur : SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "-0.06 "