偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

MySQL數組函數--mysql_fetch_array()

數據庫 MySQL
MySQL中有很多功能強大的函數,下面為您介紹的函數mysql_fetch_array()屬于MySQL數組函數,如果您對此感興趣,不妨一看。

MySQL有一類獨特的函數,稱為MySQL數組函數,下面為您介紹的就是其中的MySQL數組函數--mysql_fetch_array()。

mysql_fetch_array 從結果集中取得一行作為關聯(lián)數組,或數字數組,或二者兼有。

依次調用此函數也會返回結果集的下一行。

該MySQL數組函數語法:mysql_fetch_array(resource result, result type)

返回結果一般為:
 Array ( [0] => 1 [ID] => 1 [1] => 58.215.76.161 [IP] => 58.215.76.161 [2] => linux [description] => linux [3] => 1 [4] => http [protocol] => http [5] => 80 [port] => 80 [6] => http [7] => check_http [command] => check_http )

如果只需要關聯(lián)數組則命令參數為
  mysql_fetch_array($rs,MYSQL_ASSOC) 相當于函數mysql_fetch_assoc()。

返回結果為

Array ( [ID] => 1 [IP] => 58.215.76.161 [description] => linux [protocol] => http [port] => 80 [command] => check_http )

如果只需要數字數組則命令參數為

mysql_fetch_array($rs,MYSQL_NUM) 相當于函數mysql_fetch_row().

返回結果為

Array ( [0] => 1 [1] => 58.215.76.161 [2] => linux [3] => 1 [4] => http [5] => 80 [6] => http [7] => check_http )

 

 

【編輯推薦】

MySQL日期的相關函數介紹

帶您深入了解MYSQL Cast函數

查看三種MySQL字符集的方法

查看MySQL默認字符集

MySQL外鍵在數據庫中的作用

 

責任編輯:段燃 來源: 互聯(lián)網
相關推薦

2009-12-07 19:06:20

PHP mysql_f

2010-06-04 14:10:09

MySQL_fetch

2010-10-11 16:05:37

mysql表單

2009-11-16 15:07:23

PHP數組函數庫

2011-03-30 16:15:53

Array數組

2009-11-24 17:52:46

PHP函數in_arr

2009-11-25 14:44:34

PHP函數array_

2009-11-24 17:45:47

PHP數組排序函數ar

2009-11-24 18:08:39

PHP函數array_

2009-11-24 18:18:21

PHP函數array_

2010-11-25 11:01:33

MySQL日期函數

2010-10-11 16:19:30

Mysql聚合函數

2010-10-14 14:01:35

MySQL CONVE

2009-11-24 18:28:44

PHP函數array_

2009-11-25 16:40:55

PHP函數array_

2010-05-27 13:26:20

MySQL日期時間函數

2010-06-13 10:18:08

MySQL 數據庫函數

2010-10-09 16:18:43

MYSQL IFNUL

2010-10-11 16:23:35

MYSQL BENCH

2010-10-11 15:08:44

MySQL conca
點贊
收藏

51CTO技術棧公眾號