Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
获取指定结果集列的列信息。
sqlany_get_column_info ( $stmt, $col_index )
$stmt 由 sqlany_execute 或 sqlany_execute_direct 执行的语句对象。
$col_index 列编号在 0 到 sqlany_num_cols() - 1 之间。
返回 9 个元素的数组,其中包含用于描述结果集中一列的信息。第一个元素包含 1(成功时)或 0(失败时)。数组元素在下表中进行介绍。
# Get column info for first column (0) rc, col_num, col_name, col_type, col_native_type, col_precision, col_scale, col_size, col_nullable = api.sqlany_get_column_info( stmt, 0 )