IT. Expert System.

PHP

Return the name of the table of the specified field


cubrid_field_table

(PECL CUBRID >= 8.3.0)

cubrid_field_tableReturn the name of the table of the specified field

Description

string cubrid_field_table ( resource $result , int $field_offset )

This function returns the name of the table of the specified field. This is useful when using large select queries with JOINS.

Parameters

result

Array type of the fetched result CUBRID_NUM, CUBRID_ASSOC, CUBRID_BOTH.

field_offset

The numerical field offset. The field_offset starts at 0. If field_offset does not exist, an error of level E_WARNING is also issued.

Return Values

Name of the table of the specified field, on success.

FALSE when invalid field_offset value.

-1 if SQL sentence is not SELECT.

Examples

Example #1 cubrid_field_table() example

<?php
$conn 
cubrid_connect("localhost"33000"demodb");
$result cubrid_execute($conn"SELECT * FROM code");

$col_num cubrid_num_cols($result);

printf("%-15s %-15s %s\n""Field Table""Field Name""Field Type");
for(
$i 0$i $col_num$i++) {
    
printf("%-15s %-15s %s\n"
        
cubrid_field_table($result$i), cubrid_field_name($result$i), cubrid_field_type($result$i)); 
}

cubrid_disconnect($conn);
?>

The above example will output:

 Field Table  Field Name  Field Type code   s_name   char(1) code   f_name   varchar(6) 


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2287 / . Delta: 0.04998 с