1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P96 ppsx

5 182 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 361,79 KB

Nội dung

PHP Developer’s Dictionary IT-SC book 475 int ocicolumnsize (int stmt,mixed column) Description The ocicolumnsize() function, which is available in PHP 3.0.7 and higher, returns the size of the column in the result set stmt . The column parameter can be either the 1-based column number or the column name. ociserverversion() Syntax string ociserverversion (int conn) Description The ociserverversion() function, which is available in PHP 3.0.4 and higher, returns a string containing information about which version of the Oracle server is running. conn is a valid connection to the server. ocistatementtype() Syntax string ocistatementtype (int stmt) Description The ocistatementtype() function, which is available in PHP 3.0.7 and higher, returns the type of the result set stmt , which can be one of the following values: SELECT , UPDATE , DELETE , INSERT , CREATE , DROP , ALTER , BEGIN , DECLARE , or UNKNOWN . ocinewcursor() Syntax int ocinewcursor (int conn) Description PHP Developer’s Dictionary IT-SC book 476 The ocinewcursor() function, which is available in PHP 3.0.8 and higher, allocates a new statement handle for the connection specified by the conn parameter. This function is used to bind reference cursors. ocifreestatement() Syntax int ocifreestatement (int stmt) Description The ocifreestatement() function, which is available in PHP 3.0.7 and higher, frees all resources associated with the result set indicated by the stmt parameter. ocifreecursor() Syntax int ocifreecursor (int stmt) Description The ocifreecursor() function, which is available in PHP 3.0.7 and higher, frees all resources associated with the cursor referenced by the stmt parameter. ocicolumnname() Syntax string ocicolumnname (int stmt, int col) Description The ocicolumnname() function, which is available in PHP 3.0.4 and higher, returns the name of the column indicated by the col parameter in the result set stmt . The col parameter should be the 1-based column number for the statement. ocicolumntype() Syntax PHP Developer’s Dictionary IT-SC book 477 mixed ocicolumntype (int stmt, int col) Description The ocicolumntype() function, which is available in PHP 3.0.4 and higher, returns the data type of the column indicated by the col parameter in the result set referenced by the stmt parameter, where col is the 1-based number of the column in the result set. ociparse() Syntax int ociparse (int conn, string query) Description The ociparse() function, which is available in PHP 3.0.7 and higher, parses the referenced query for the given connection conn . The return value is a statement identifier for a valid query or FALSE otherwise. The query parameter can be any valid SQL statement. ocierror() Syntax array ocierror ([int stmt | conn | global) Description The ocierror() function, which is available in PHP 3.0.7 and higher, returns the last error for the parameter specified and FALSE if no error occurred. If no parameter is specified, the last error encountered is returned. The return value is an associative array with the code key representing the Oracle error code and the value is the Oracle error string. ociinternaldebug() Syntax PHP Developer’s Dictionary IT-SC book 478 void ociinternaldebug (int onoff) Description The ociinternaldebug() function, which was added in PHP 3.0.4 and PHP 4.0, toggles the internal debug output. The default is off (0). PostgreSQL The PostgreSQL functions enable you to access data in a Postgres database. More information can be found at http://www.PostgreSQL.org . pg_close() Syntax bool pg_close (int connection) Description The pg_close() function, which is available in PHP 3.0 and higher, closes the referenced connection and returns TRUE on success and FALSE otherwise. This is not normally used because the connection is automatically closed at the end of a script's processing. pg_cmdtuples() Syntax int pg_cmdtuples (int result_id) Description The pg_cmdtuples() function, which is available in PHP 3.0 and higher, returns the number of tuples (instances) affected by an insert, update, or delete query. pg_connect() Syntax int pg_connect (string host, string port, PHP Developer’s Dictionary IT-SC book 479 string options, string tty, string dbname) Description The pg_connect() function, which is available in PHP 3.0 and higher, establishes a connection to a PostgreSQL server and returns the connection index on success and FALSE otherwise. Each parameter should be a quoted string with options and tty being optional parameters. pg_dbname() Syntax string pg_dbname (int connection) Description The pg_dbname() function, which is available in PHP 3.0 and higher, returns the name of the database for the given connection or FALSE if the connection is not valid. pg_errormessage() Syntax string pg_errormessage (int connection) Description The pg_errormessage() function, which is available in PHP 3.0 and higher, returns a string containing the last error message generated on the given connection . pg_exec() Syntax int pg_exec (int connection , string query) Description . ociinternaldebug() Syntax PHP Developer’s Dictionary IT-SC book 478 void ociinternaldebug (int onoff) Description The ociinternaldebug() function, which was added in PHP 3.0.4 and PHP 4.0, toggles. int ocinewcursor (int conn) Description PHP Developer’s Dictionary IT-SC book 476 The ocinewcursor() function, which is available in PHP 3.0.8 and higher, allocates a new statement. ocicolumntype() Syntax PHP Developer’s Dictionary IT-SC book 477 mixed ocicolumntype (int stmt, int col) Description The ocicolumntype() function, which is available in PHP 3.0.4 and higher,

Ngày đăng: 07/07/2014, 05:20