当前位置: 首页>>代码示例>>PHP>>正文


PHP OCIcolumnsize函数代码示例

本文整理汇总了PHP中OCIcolumnsize函数的典型用法代码示例。如果您正苦于以下问题:PHP OCIcolumnsize函数的具体用法?PHP OCIcolumnsize怎么用?PHP OCIcolumnsize使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了OCIcolumnsize函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ADOFieldObject

 function &_FetchField($fieldOffset = -1)
 {
     $fld = new ADOFieldObject();
     $fieldOffset += 1;
     $fld->name = strtolower(OCIcolumnname($this->_queryID, $fieldOffset));
     $fld->type = OCIcolumntype($this->_queryID, $fieldOffset);
     $fld->max_length = OCIcolumnsize($this->_queryID, $fieldOffset);
     if ($fld->type == 'NUMBER') {
         //$p = OCIColumnPrecision($this->_queryID, $fieldOffset);
         $sc = OCIColumnScale($this->_queryID, $fieldOffset);
         if ($sc == 0) {
             $fld->type = 'INT';
         }
     }
     return $fld;
 }
开发者ID:OberjukhtinIA0VWV0Allokuum,项目名称:testmasteke.leo,代码行数:16,代码来源:adodb-oci8po.inc.php

示例2: _FetchField

	function _FetchField($fieldOffset = -1)
	{
		$fld = new ADOFieldObject;
		$fieldOffset += 1;
		$fld->name =OCIcolumnname($this->_queryID, $fieldOffset);
		$fld->type = OCIcolumntype($this->_queryID, $fieldOffset);
		$fld->max_length = OCIcolumnsize($this->_queryID, $fieldOffset);
	 	switch($fld->type) {
		case 'NUMBER':
	 		$p = OCIColumnPrecision($this->_queryID, $fieldOffset);
			$sc = OCIColumnScale($this->_queryID, $fieldOffset);
			if ($p != 0 && $sc == 0) $fld->type = 'INT';
			break;

	 	case 'CLOB':
		case 'NCLOB':
		case 'BLOB':
			$fld->max_length = -1;
			break;
		}
		return $fld;
	}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:22,代码来源:adodb-oci8.old.inc.php

示例3: ADOFieldObject

 function &_FetchField($fieldOffset = -1)
 {
     $fld = new ADOFieldObject();
     $fieldOffset += 1;
     $fld->name = OCIcolumnname($this->_queryID, $fieldOffset);
     $fld->type = OCIcolumntype($this->_queryID, $fieldOffset);
     $fld->max_length = OCIcolumnsize($this->_queryID, $fieldOffset);
     if ($fld->type == 'NUMBER') {
         $p = OCIColumnPrecision($this->_queryID, $fieldOffset);
         $sc = OCIColumnScale($this->_queryID, $fieldOffset);
         if ($p != 0 && $sc == 0) {
             $fld->type = 'INT';
         }
         //echo " $this->name ($p.$sc) ";
     }
     return $fld;
 }
开发者ID:JovanyJeff,项目名称:hrp,代码行数:17,代码来源:adodb-oci8.inc.php

示例4: _FetchField

 function _FetchField($fieldOffset = -1)
 {
     $fld = new ADOFieldObject();
     $fieldOffset += 1;
     $fld->name = OCIcolumnname($this->_queryID, $fieldOffset);
     if (ADODB_ASSOC_CASE == ADODB_ASSOC_CASE_LOWER) {
         $fld->name = strtolower($fld->name);
     }
     $fld->type = OCIcolumntype($this->_queryID, $fieldOffset);
     $fld->max_length = OCIcolumnsize($this->_queryID, $fieldOffset);
     if ($fld->type == 'NUMBER') {
         $sc = OCIColumnScale($this->_queryID, $fieldOffset);
         if ($sc == 0) {
             $fld->type = 'INT';
         }
     }
     return $fld;
 }
开发者ID:nicolas34732,项目名称:address_book,代码行数:18,代码来源:adodb-oci8po.inc.php


注:本文中的OCIcolumnsize函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。