[TOC] ## 概述 ``` $host = "127.0.0.1"; $dbname = "demo"; $password = '123456'; $username ='postgres'; $dbh = new PDO("pgsql:dbname=$dbname;host=$host", $username, $password ); $dbh->exec("INSERT INTO on_hand VALUES (ROW('fuzzy dice', 42, 1.999), 1000);"); ```