cubrid_field_table 함수는 지정된 필드가 속한 테이블 이름을 반환한다.
string cubrid_field_table ( int $result , int $field_offset )
<?php
$query = "SELECT account.*, country.* FROM account, country WHERE country.name = 'Portugal' AND account.country_id = country.id";
$result = cubrid_execute($link, $query);
if (!$result) {
echo 'Could not run query: ' .cubrid_error_msg();
exit;
}
// Lists the table name and then the field name
for ($i = 0; $i < cubrid_num_fields($result); ++$i) {
$table = cubrid_field_table($result, $i);
$field = cubrid_field_name($result, $i);
echo "$table: $field\n";
}
?>