´ÙÀ½ ÀÌÀü Â÷·Ê

13. ºÎ·Ï C PostgreSQL large object ¿¹Á¦

Á¦ÃâÀÚ : PHP code exchange px@sklar.com ÀÌÈ­ÀÏÀ» ¾òÀ¸·Á¸é À¥ºê¶ó¿ìÁ®¿¡¼­ '´Ù¸¥À̸§À¸·Î ÀúÀå'À» ´­·¯ pgsql_largeobj.lib ¶ó°í ÀÔ·ÂÇϽÿÀ.



PX: PHP Code Exchange - PostgreSQL large object access

<?
        $database = pg_Connect ( "",  "",  "",  "",  "jacarta");
        pg_exec ($database,  "BEGIN");
        $oid = pg_locreate ($database);
        echo ( "$oid\n");
        $handle = pg_loopen ($database, $oid,  "w");
        echo ( "$handle\n");
        pg_lowrite ($handle,  "foo");
        pg_loclose ($handle);
        pg_exec ($database,  "COMMIT");
        pg_close ($database);
?>


´ÙÀ½ ÀÌÀü Â÷·Ê