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


PHP ADOConnection::MetaTables方法代码示例

本文整理汇总了PHP中ADOConnection::MetaTables方法的典型用法代码示例。如果您正苦于以下问题:PHP ADOConnection::MetaTables方法的具体用法?PHP ADOConnection::MetaTables怎么用?PHP ADOConnection::MetaTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ADOConnection的用法示例。


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

示例1: MetaTables

 function MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     if ($mask) {
         $save = $this->metaTablesSQL;
         $mask = $this->qstr(strtoupper($mask));
         $this->metaTablesSQL .= " AND table_name like {$mask}";
     }
     $ret = ADOConnection::MetaTables($ttype, $showSchema);
     if ($mask) {
         $this->metaTablesSQL = $save;
     }
     return $ret;
 }
开发者ID:jnugh,项目名称:Paradise-Bird-Project,代码行数:13,代码来源:adodb-pdo_oci.inc.php

示例2:

 function &MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     if ($mask) {
         $save = $this->metaTablesSQL;
         $mask = $this->qstr($mask);
         $this->metaTablesSQL .= " like {$mask}";
     }
     $ret =& ADOConnection::MetaTables($ttype, $showSchema);
     if ($mask) {
         $this->metaTablesSQL = $save;
     }
     return $ret;
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:13,代码来源:adodb-mysql.inc.php

示例3: MetaTables

 function MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     $save = $this->metaTablesSQL;
     if ($showSchema && is_string($showSchema)) {
         $this->metaTablesSQL .= " from {$showSchema}";
     }
     if ($mask) {
         $mask = $this->qstr($mask);
         $this->metaTablesSQL .= " like {$mask}";
     }
     $ret = ADOConnection::MetaTables($ttype, $showSchema);
     $this->metaTablesSQL = $save;
     return $ret;
 }
开发者ID:JonsonChang,项目名称:mail_tracker,代码行数:14,代码来源:adodb-mysql.inc.php

示例4: MetaTables

 function MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     $save = $this->metaTablesSQL;
     if ($showSchema && is_string($showSchema)) {
         $this->metaTablesSQL .= $this->qstr($showSchema);
     } else {
         $this->metaTablesSQL .= "schema()";
     }
     if ($mask) {
         $mask = $this->qstr($mask);
         $this->metaTablesSQL .= " AND table_name LIKE {$mask}";
     }
     $ret = ADOConnection::MetaTables($ttype, $showSchema);
     $this->metaTablesSQL = $save;
     return $ret;
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:16,代码来源:adodb-pdo_mysql.inc.php

示例5: MetaTables

 function MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     $info = $this->ServerInfo();
     if ($info['version'] >= 7.3) {
         $this->metaTablesSQL = "select tablename,'T' from pg_tables where tablename not like 'pg\\_%'\n\t\t\t  and schemaname  not in ( 'pg_catalog','information_schema')\n\tunion \n        select viewname,'V' from pg_views where viewname not like 'pg\\_%'  and schemaname  not in ( 'pg_catalog','information_schema') ";
     }
     if ($mask) {
         $save = $this->metaTablesSQL;
         $mask = $this->qstr(strtolower($mask));
         if ($info['version'] >= 7.3) {
             $this->metaTablesSQL = "\nselect tablename,'T' from pg_tables where tablename like {$mask} and schemaname not in ( 'pg_catalog','information_schema')  \n union \nselect viewname,'V' from pg_views where viewname like {$mask} and schemaname  not in ( 'pg_catalog','information_schema')  ";
         } else {
             $this->metaTablesSQL = "\nselect tablename,'T' from pg_tables where tablename like {$mask} \n union \nselect viewname,'V' from pg_views where viewname like {$mask}";
         }
     }
     $ret = ADOConnection::MetaTables($ttype, $showSchema);
     if ($mask) {
         $this->metaTablesSQL = $save;
     }
     return $ret;
 }
开发者ID:jpbalderas17,项目名称:hris,代码行数:21,代码来源:adodb-pdo_pgsql.inc.php

示例6: getTableNameList

 /**
  * get table name list
  *
  * @return array tablename
  * @access public
  */
 function getTableNameList()
 {
     return $tableArray = $this->connection->MetaTables("TABLES");
 }
开发者ID:634,项目名称:peewee,代码行数:10,代码来源:TableDefinitionDao.php

示例7: MetaTables

 function MetaTables()
 {
     return ADOConnection::MetaTables();
 }
开发者ID:BackupTheBerlios,项目名称:osiswebprinter,代码行数:4,代码来源:adodb-odbc_mssql.inc.php

示例8:

 function &MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     if ($mask) {
         $save = $this->metaTablesSQL;
         $mask = $this->qstr(strtolower($mask));
         $this->metaTablesSQL = "\nselect tablename,'T' from pg_tables where tablename like {$mask} union \nselect viewname,'V' from pg_views where viewname like {$mask}";
     }
     $ret =& ADOConnection::MetaTables($ttype, $showSchema);
     if ($mask) {
         $this->metaTablesSQL = $save;
     }
     return $ret;
 }
开发者ID:hugcoday,项目名称:wiki,代码行数:13,代码来源:adodb-postgres64.inc.php

示例9: MetaTables

	function MetaTables($ttype=false,$showSchema=false,$mask=false)
	{
		if ($mask) {$this->debug=1;
			$save = $this->metaTablesSQL;
			$mask = $this->qstr($mask);
			$this->metaTablesSQL .= " AND name like $mask";
		}
		$ret = ADOConnection::MetaTables($ttype,$showSchema);

		if ($mask) {
			$this->metaTablesSQL = $save;
		}
		return $ret;
	}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:14,代码来源:adodb-odbc_mssql.inc.php

示例10: MetaTables

 function MetaTables($ttype = false, $showSchema = false, $mask = false)
 {
     // OVERWRITE 3: Insert
     global $CFG;
     $schema = $CFG->current_app->getShortName();
     // END OVERWRITE 3
     $info = $this->ServerInfo();
     if ($info['version'] >= 7.3) {
         // OVERWRITE 4: replacement, changed from:
         //$this->metaTablesSQL = "select tablename,'T' from pg_tables where tablename not like 'pg\_%'
         //and schemaname  not in ( 'pg_catalog','information_schema')
         //union
         // select viewname,'V' from pg_views where viewname not like 'pg\_%'  and schemaname  not in ( 'pg_catalog','information_schema') ";
         // to:
         $this->metaTablesSQL = "select tablename,'T' from pg_tables where tablename not like 'pg\\_%'\n\t\t\t  and schemaname = '{$schema}'\n\tunion\n        select viewname,'V' from pg_views where viewname not like 'pg\\_%'  and schemaname = '{$schema}'";
         // END OVERWRITE 4
     }
     if ($mask) {
         $save = $this->metaTablesSQL;
         $mask = $this->qstr(strtolower($mask));
         if ($info['version'] >= 7.3) {
             // OVERWRITE 5: replacement, changed from:
             //$this->metaTablesSQL = "
             //select tablename,'T' from pg_tables where tablename like $mask and schemaname not in ( 'pg_catalog','information_schema')
             // union
             //select viewname,'V' from pg_views where viewname like $mask and schemaname  not in ( 'pg_catalog','information_schema')  ";
             // to:
             $this->metaTablesSQL = "\nselect tablename,'T' from pg_tables where tablename like {$mask} and schemaname = '{$schema}'\n union\nselect viewname,'V' from pg_views where viewname like {$mask} and schemaname = '{$schema}'";
         } else {
             $this->metaTablesSQL = "\nselect tablename,'T' from pg_tables where tablename like {$mask}\n union\nselect viewname,'V' from pg_views where viewname like {$mask}";
         }
     }
     $ret = ADOConnection::MetaTables($ttype, $showSchema);
     if ($mask) {
         $this->metaTablesSQL = $save;
     }
     return $ret;
 }
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:38,代码来源:adodb-postgres64.inc.php


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