PHP:oci_free_descriptor()的用法_Oracle函數(shù)
701
2023-12-12
(PHP 4, PHP 5)
mysql_tablename — 取得表名
$result
, int $i
)
mysql_tablename() 接受 mysql_list_tables() 返回的結(jié)果指針以及一個整數(shù)索引作為參數(shù)并返回表名。可以用 mysql_num_rows() 函數(shù)來判斷結(jié)果指針中的表的數(shù)目。用 mysql_tablename() 函數(shù)來遍歷此結(jié)果指針,或者任何處理結(jié)果表的函數(shù),例如 mysql_fetch_array()。
Example #1 mysql_tablename() 例子
<?php
mysql_connect("localhost", "mysql_user", "mysql_password");
$result = mysql_list_tables("mydb");
for ($i = 0; $i < mysql_num_rows($result); $i++)
printf ("Table: %sn", mysql_tablename($result, $i));
mysql_free_result($result);
?>
參見 mysql_list_tables()。
#免責(zé)聲明#
本站[綠夏技術(shù)導(dǎo)航]提供的一切軟件、教程和內(nèi)容信息僅限用于學(xué)習(xí)和研究目的;不得將上述內(nèi)容用于商業(yè)或者非法用途,否則,一切后果請用戶自負。本站信息來自網(wǎng)絡(luò)收集整理,版權(quán)爭議與本站無關(guān)。您必須在下載后的24個小時之內(nèi),從您的電腦或手機中徹底刪除上述內(nèi)容。如果您喜歡該程序或內(nèi)容,請支持正版,購買注冊,得到更好的正版服務(wù)。我們非常重視版權(quán)問題,如有侵權(quán)請郵件[admin@lxwl520.com]與我們聯(lián)系進行刪除處理。敬請諒解!