pg_exec

Name

pg_exec -- send a query string to the backend  -- �Хå�����ɤ��䤤��碌���������ޤ���

Synopsis

pg_exec dbHandle queryString

**********************************************************

����

dbHandle

Specifies a valid database handle.

ͭ���ʥǡ����١����ϥ�ɥ����ꤷ�ޤ���

queryString

Specifies a valid SQL query.

ͭ���� SQL �䤤��碌����ꤷ�ޤ���

����

resultHandle

A Tcl error will be returned if Pgtcl was unable to obtain a backend response. Otherwise, a query result object is created and a handle for it is returned. This handle can be passed to pg_result to obtain the results of the query.

Pgtcl ���Хå�����ɤ�����������뤳�Ȥ��Ǥ��ʤ��ä���硢Tcl �� �顼���֤���ޤ�������ʤ��С��䤤��碌�η�̥��֥������Ȥ����� ���졢���Υϥ�ɥ뤬�֤���ޤ������Υϥ�ɥ�� pg_result ���Ϥ����Ȥǡ��䤤��碌�η�̤��� �뤳�Ȥ��Ǥ��ޤ���

����

pg_exec submits a query to the Postgres backend and returns a result. Query result handles start with the connection handle and add a period and a result number.

pg_exec �� Postgres �Хå�����ɤ��䤤��碌�����ꡢ���η�̤��֤��ޤ����䤤��碌��̤� �ϥ�ɥ�̾�ϡ���³�ϥ�ɥ�̾����Ϥޤꡢ³���ơ��ԥꥪ�ɡ������Ʒ�� �ֹ椬�դ�����Τˤʤ�ޤ���

Note that lack of a Tcl error is not proof that the query succeeded! An error message returned by the backend will be processed as a query result with failure status, not by generating a Tcl error in pg_exec.

Tcl ���顼��̵���Ȥ��äƤ��䤤��碌�����������Ȥϸ¤�ޤ��󡪥Хå� ����ɤ����֤���륨�顼��å������ϡ��ɤ�ʼ��ԤǤ��ä����Υ��ơ��� ������ä��䤤��碌��̤Ȥ��ƽ���������ΤǤ��ꡢpg_exec ��Ǥ� Tcl ���顼�ˤ�ä�����������ΤǤϤ���ޤ���