PHP API Reference. I.1 Writing PHP Scripts
|
|
|
- Jeremy Poole
- 9 years ago
- Views:
Transcription
1 PHP API Reference I This appendix describes the application programming interface for writing PHP scripts that use the PHP Data Objects (PDO) database-access extension to interface with MySQL. The API consists of a set of classes and methods for communicating with MySQL servers and accessing databases. PDO works with PHP 5.0 and up, but this appendix assumes a minimum of PHP 5.1 because that is when PDO was first bundled with PHP. See for more information. If you need to install PHP, see Appendix A, Software Required to Use This Book. The examples in this appendix are only brief code fragments. For complete scripts and instructions for writing them, see Chapter 9, Writing MySQL Programs Using PHP. The manual for PHP itself is available at the PHP Web site, I.1 Writing PHP Scripts PHP scripts are plain text files that contain a mixture of PHP code and non-php content such as HTML. PHP interprets the script to produce a Web page to be sent as output to the client. The non-php content is copied to the output without interpretation. PHP code is interpreted and replaced by whatever output the code produces. PHP begins interpreting a file in text copy mode. To switch into and out of PHP code mode, use special tags that signify the beginning and end of PHP code. PHP understands four types of tags, although some of them must be explicitly enabled if you want to use them. One way to do this is by turning them on in the PHP initialization file, php.ini. The location of this file is system dependent; on many Unix systems, it s found in /etc or /usr/local/lib. On Windows, look in the PHP installation directory. PHP understands the following tag styles: The default style uses <?php and?> tags: <?php print ("Hello, world.");?>
2 1158 Appendix I PHP API Reference Short-open-tag style uses <? and?> tags: <? print ("Hello, world.");?> This style also supports <?= and?> tags as a shortcut for displaying the result of an expression without using a print statement: <?= "Hello, world."?> Short tags can be enabled with a directive in the PHP initialization file: short_open_tag = On; Active Server Page-compatible style uses <% and %> tags: <% print ("Hello, world."); %> This style also supports <%= and %> tags as a shortcut for displaying the result of an expression without using a print statement: <%= "Hello, world." %> ASP-style tags can be enabled with a directive in the PHP initialization file: asp_tags = On; If you use an HTML editor that doesn t understand the other tags, you can use <script> and </script> tags: <script language="php"> print ("Hello, world."); </script> Short tags and ASP-style tages are not portable; you cannot assume that a particular PHP installation will have them enabled. I.2 PDO Classes This appendix discusses the following classes from the PDO extension: PDO is the primary class. The class constructor is used for connecting to the database server. It returns a database-handle object that has methods for further interaction with the server. PDOStatement is the statement-handle class, returned by the query() and prepare() methods of PDO objects. A statement handle provides access to a statement result, such as statement metadata and result set contents. PDOException is the PDO error class. Objects of this class support methods for obtaining diagnostic information when an exception is raised due to occurrence of a PDO error.
3 I.3 PDO Methods 1159 I.3 PDO Methods The following descriptions discuss available PDO methods, organized by the class with which they are associated. Certain object names recur throughout the method descriptions in this appendix and have the following conventional meanings: Database handle methods are called using a $dbh object, which is obtained by calling the PDO class constructor, new PDO(). Statement handle methods are called using a $sth object, which is returned by $dbh->prepare() or $dbh->query(). Exception objects are denoted by $e. The method descriptions indicate data types for return values and parameters. A type of mixed indicates that a value might have different data types depending on how the value is used. Many methods return a value that indicates success or failure. This value is relevant if PDO exceptions are not enabled, and should be tested to determine method outcome. If PDO exceptions are enabled, method errors cause PDO to raise a PDOException, which can be caught by using a try/catch construct. (See Section I.3.3, PDOException Object Methods. ) Square brackets ( [] ) in syntax descriptions indicate optional parameters. When an optional parameter is followed by = value, it indicates that if the parameter is omitted from a method call, value is its default value. The examples print messages and query results as plain text for the most part. This is done to make the code easier to read. However, for scripts intended for execution in a Web environment, you generally should encode output with htmlspecialchars() if it may contain characters that are special in HTML, such as <, >, or &. In the descriptions that follow, the term SELECT statement should be taken to mean a SELECT statement or any other statement that returns rows, such as DESCRIBE, EXPLAIN, or SHOW. I.3.1 PDO Class Methods The PDO class includes methods for operations such as connecting to the database server, preparing and executing SQL statements, and setting or getting connection attributes. PDO construct (string $dsn [, string $username [, string $password [, array $options]]])
4 1160 Appendix I PHP API Reference This is the PDO constructor, which is executed when you invoke new PDO(). The constructor attempts to connect to a database server and returns an object representing a database handle if the attempt is successful. PHP raises a PDOException if an error occurs: try $dbh = new PDO("mysql:host=localhost;dbname=sampdb", "sampadm", "secret"); catch (PDOException $e) die ($e->getmessage (). "\n"); To close the connection, set the database handle to NULL : $dbh = NULL; The $dsn argument represents the data source name (DSN). The DSN can take several forms: A driver DSN begins with a driver name and a colon, followed by optional driverspecific parameters. For MySQL, a driver DSN looks like this: mysql:host= host_name ;dbname= db_name The host and dbname parameters indicate the host where the MySQL server is running and the database to select as the default database. The default host value is localhost. No default database is selected if dbname is omitted. Other possible parameters are port to specify the TCP/IP port number, unix_socket to specify the Unix socket file pathname, and (as of PHP 5.3.6) charset to specify the connection character set. If you use unix_socket, do not use host or port. A URI DSN begins with uri: followed by a URI that specifies the location of a file that contains a driver DSN. The URI can be local or remote. A local URI looks like this: uri:file:///usr/local/lib/my-dsn-file An alias DSN is a name XXX that associates with a configuration parameter of pdo.dsn. XXX in the php.ini file. For example, an alias of sampdb associates with a configuration parameter of pdo.dsn.sampdb, and the value of that parameter in php.ini should be a driver DSN. The $username and $password arguments, if given, are the username and password of the MySQL account to use. The $options array, if given, provides additional connection options that are not specified in the other arguments. Some of the options shown here are specific to the MySQL driver. Others are generic and may be supported by other drivers. For integervalued options that turn behaviors on or off, pass 1 or 0 to enable or disable them.
5 I.3 PDO Methods 1161 PDO::ATTR_AUTOCOMMIT (integer value; default enabled) Enable or disable autocommit mode. PDO::ATTR_PERSISTENT (integer value; default disabled) Enable or disable use of a persistent connection. PDO::ATTR_TIMEOUT (integer value; default 300) For MySQL, the connection timeout in seconds. For other database systems, this attribute may have a different meaning. PDO::MYSQL_ATTR_COMPRESS (integer value; default 0) Requests use of the compressed client/server communication protocol if the client and server both support it. PDO::MYSQL_ATTR_DIRECT_QUERY, PDO::ATTR_EMULATE_PREPARES (integer value; default enabled) Enable or disable use of direct statements. With direct statements, placeholders are emulated on the client side before sending queries to the server. PDO::MYSQL_ATTR_FOUND_ROWS (integer value; default 0) The type of row count to return for UPDATE statements. By default, the server returns the number of rows changed. Setting this attribute to 1 causes the server to return the number of rows matched. PDO::MYSQL_ATTR_INIT_COMMAND (string value) A statement to execute after connecting to the MySQL server, and after any automatic reconnect. PDO::MYSQL_ATTR_LOCAL_INFILE (integer value; default disabled) Enable or disable LOAD DATA LOCAL. Note that the MySQL server might not support LOCAL, or PHP safe mode might be in effect. In either case, attempts to enable LOCAL will be ineffective. PDO::MYSQL_ATTR_MAX_BUFFER_SIZE (integer value; default 1MB) The maximum size in bytes for column values returned by PDO. Truncation occurs for longer values. PDO::MYSQL_ATTR_READ_DEFAULT_FILE (string value) An option file from which to read options rather than the default file or files. PDO::MYSQL_ATTR_READ_DEFAULT_GROUP (string value) The group for which to read options from any option files that are read. PDO::MYSQL_ATTR_USE_BUFFERED_QUERY (integer value; default enabled) Enable or disable buffering of query result sets on the client side. When disabled, rows are retrieved from the server one at a time.
6 1162 Appendix I PHP API Reference begintransaction (void) Disables autocommit mode and starts a transaction. Returns TRUE for success or FALSE for failure. To end the transaction, call commit() to commit any changes or rollback() to cancel any changes. try $dbh->begintransaction (); # start transaction $dbh->exec ($stmt1); # execute statements $dbh->exec ($stmt2); $dbh->commit (); # commit if successful catch (PDOException $e) # roll back if unsuccessful, but use empty # exception handler to catch rollback failure print ($e->getmessage (). "\n"); try $dbh->rollback (); catch (PDOException $e) commit (void) Commits the current transaction and restores the autocommit mode. Returns TRUE for success, FALSE for failure, or raises an exception if no transaction is active. For an example, see the description of begintransaction(). string errorcode (void) Returns a string containing the five-character SQLSTATE value for the most recent operation on the database handle. A return value equal to PDO::ERR_NONE ( "00000" ) means no error. if (!($sth = $dbh->query ($stmt))) print ("The statement failed.\n"); print ("errorcode: ". $dbh->errorcode (). "\n"); print ("errorinfo: ". join (", ", $dbh->errorinfo ()). "\n");
7 I.3 PDO Methods 1163 array errorinfo (void) Returns a three-element array containing error information for the most recent operation on the database handle. The array values are the SQLSTATE value (the same value returned by errorcode() ) and driver-specific error code and error message values. For MySQL, the driver-specific values are a numeric code and message string. If the handle operation succeeds, the return value may be a single-element array containing the SQLSTATE value PDO::ERR_NONE ( "00000" ). For an example, see the description of errorcode(). int exec (string $stmt) Executes the SQL statement passed in the argument and returns the number of affected rows. Returns FALSE or the empty string if an error occurs. $count = $dbh->exec ("DELETE FROM member WHERE member_id = 149"); printf ("Number of rows deleted: %d\n", $count); Use exec() for statements such as INSERT or DELETE that modify database contents. For statements such as SELECT that produce a result set, use query() instead. mixed getattribute (int $attr) Returns the value of the specified database-handle attribute, or raises an exception for failure. Section I.3.4, PDO Constants, lists some of the available attributes that can be retrieved with getattribute(). printf ("Driver name: %s\n", $dbh->getattribute (PDO::ATTR_DRIVER_NAME)); printf ("Server info: %s\n", $dbh->getattribute (PDO::ATTR_SERVER_INFO)); printf ("Server version: %s\n", $dbh->getattribute (PDO::ATTR_SERVER_VERSION)); array getavailabledrivers (void) Returns an array containing the names of the available PDO drivers. $drivers = $dbh->getavailabledrivers (); printf ("Number of drivers available: %d\n", count ($drivers)); print ("Driver names: ". join (" ", $drivers). "\n");
8 1164 Appendix I PHP API Reference getavailabledrivers() can also be called as a static method without obtaining a database handle first: $drivers = PDO::getAvailableDrivers (); string intransaction (void) Returns TRUE if there is a transaction active, FALSE if not. string lastinsertid ([string $name]) Returns the most recently generated sequence number for the connection. The behavior is driver-specific. For MySQL, the value is that returned by the mysql_insert_id() C API function. For some drivers (not MySQL), the $name argument must be given to specify the name of the sequence object. $dbh->exec ("INSERT INTO grade_event (date, category) VALUES(' ','T')"); printf ("New grade_event ID: %d\n", $dbh->lastinsertid ()); PDOStatement prepare (string $stmt [, array $options]) Prepares the SQL statement passed in the first argument and returns a PDOStatement statement handle to use for further operations on the statement, or FALSE if statement preparation fails. To execute the statement, invoke the statement handle s execute() method. $sth = $dbh->prepare ("INSERT INTO absence (student_id, date) VALUES (?,?)"); $sth->execute (array (7, " ")); $sth->execute (array (18, " ")); The statement may contain placeholders in either positional or named format. Data values should be bound to the placeholders before invoking execute(), or else passed as parameters to execute(). For additional examples, see the descriptions of bindparam() and bindvalue() in Section I.3.2, PDOStatement Object Methods. The $options array, if given, specifies key/value pairs for setting attributes of the statement handle produced by prepare(). PDOStatement query (string $stmt [, fetch_mode_option ]...) Executes the SQL statement passed in the first argument and returns a PDOStatement statement handle to use for accessing the result set, or FALSE if an error occurs.
9 I.3 PDO Methods 1165 $sth = $dbh->query ("SELECT last_name, first_name FROM president"); while ($row = $sth->fetch ()) printf ("%s %s\n", $row[1], $row[0]); Use query() for statements such as SELECT that produce a result set. For statements such as INSERT or DELETE that modify database contents, use exec() instead. Any arguments following the first are treated as arguments to pass to setfetchmode() for the statement handle returned by query(). See the description of setfetchmode() for the permitted arguments. Alternatively, specify the fetch mode by calling setfetchmode() directly after query() returns, or by passing a mode to fetch(). The fetch mode determines the type of object returned by fetch(). It is also possible to use the PDOStatement object as an iterator without calling fetch() : foreach ($sth as $row) printf ("%s %s\n", $row[1], $row[0]); string quote (string $str [, int $param_type]) Escapes any special characters in the string passed as the first argument (using the conventions required by the current driver), adds surrounding quotes, and returns the resulting string. Returns FALSE if the driver does not support this method. $quoted_val1 = $dbh->quote (13); $quoted_val2 = $dbh->quote ("it's a string"); The second argument may be specified to indicate the data type of the first argument. The default is PDO::PARAM_STR. See Section I.3.4, PDO Constants, for a list of parameter type values. quote() doesn t correctly handle NULL values; it returns a quoted empty string rather than an unquoted word NULL. If your data values might be NULL, you re probably better off to take the approach of using placeholders and binding data values to them. Then PDO properly handles any required special processing. rollback (void) Rolls back the current transaction and restores the autocommit mode. Returns TRUE for success, FALSE for failure, or raises an exception if no transaction is active. For an example, see the description of begintransaction(). setattribute (int $attr, mixed $value) Sets an attribute for the database handle. The first argument names the attribute and the second provides its value. Returns TRUE for success or FALSE for failure.
10 1166 Appendix I PHP API Reference Section I.3.4, PDO Constants, lists some of the attributes that can be set with setattribute(). $dbh->setattribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); $dbh->setattribute (PDO::ATTR_AUTOCOMMIT, true); I.3.2 PDOStatement Object Methods A PDOStatement object represents a statement handle returned by the query() or prepare() database-handle methods. Statement handles have methods for operations such as executing statements, accessing statement metadata and result set contents, binding data values to prepared statements, and binding variables to result sets. bindcolumn (mixed $column, mixed $var [, int $type [, int $len [, mixed $options]]]) Binds a column of a result set to a PHP variable, so that fetching a row sets the variable to the column value for the row. (Fetch the rows using a fetch mode of PDO::FETCH_ BOUND.) Returns TRUE for success or FALSE for failure. The $column value can be given as a column number (beginning with 1) or column name (in the lettercase returned by the driver). $var is the PHP variable to which column values should be bound for each row fetch operation. $type specifies the data type of the column. The default is PDO::PARAM_STR. See Section I.3.4, PDO Constants, for a list of parameter type values. The $len and $options values are specified the same way as for bindparam(). $sth = $dbh->query ("SELECT last_name, first_name FROM president"); $sth->bindcolumn ("last_name", $l_name); # specify column by name $sth->bindcolumn (2, $f_name); # specify column by position while ($sth->fetch (PDO::FETCH_BOUND)) printf ("%s %s\n", $f_name, $l_name); bindparam (mixed $column, mixed $var [, int $type [, int $len [, mixed $options]]]) Binds a PHP variable to a placeholder in a prepared statement. Returns TRUE for success or FALSE for failure. To provide a value for the placeholder, assign it to the variable before calling execute().
11 I.3 PDO Methods 1167 The $column value can be given as a placeholder number (beginning with 1) or a placeholder name in the statement string (a name preceded by a colon). $var is the PHP variable to be bound to the placeholder. $type specifies the data type of the column. The default is PDO::PARAM_STR. See Section I.3.4, PDO Constants, for a list of parameter type values. If a placeholder is associated with an INOUT stored procedure parameter, perform an OR operation on the type with PDO::INPUT_OUTPUT (for example, PDO::PARAM_INT PDO::INPUT_OUTPUT ). $len indicates the length of the data type. If a placeholder is associated with an OUT stored procedure parameter, you should provide an explicit length. $options provides data for the driver. $sth = $dbh->prepare ("INSERT INTO absence (student_id, date) VALUES (:id, :date)"); $sth->bindparam (":id", $student_id); $sth->bindparam (":date", $date); $student_id = 7; $date = " "; $sth->execute (); $student_id = 18; $date = " "; $sth->execute (); bindvalue (mixed $column, mixed $value [, int $type]) Binds a value to a placeholder in a prepared statement. Returns TRUE for success or FALSE for failure. The value is used for the next call to execute(). The $column and $type values are specified the same way as for bindparam(). $sth = $dbh->prepare ("INSERT INTO absence (student_id, date) VALUES (?,?)"); $sth->bindvalue (1, 7); $sth->bindvalue (2, " "); $sth->execute (); $sth->bindvalue (1, 18); $sth->bindvalue (2, " "); $sth->execute (); closecursor (void) Releases resources associated with the statement. Returns TRUE for success or FALSE for failure. This method can be used if you want to execute a statement again but have not
12 1168 Appendix I PHP API Reference fetched the entire result set currently associated with the statement handle. (For MySQL, this should not be necessary because the driver retrieves any unfetched part of the result set as necessary, but that might not be true for other drivers.) int columncount (void) Returns the number of columns in the result set produced by executing a statement. This value is 0 if the statement has not been executed or did not produce a result set. $sth = $dbh->query ("SELECT * FROM president"); printf ("Number of columns in result set: %d\n", $sth->columncount ()); string errorcode (void) This is similar to errorcode() for PDO objects but applies to operations on PDOStatement objects. if (!$sth->execute ()) print ("Could not execute statement.\n"); print ("errorcode: ". $sth->errorcode (). "\n"); print ("errorinfo: ". join (", ", $sth->errorinfo ()). "\n"); array errorinfo (void) This is similar to errorinfo() for PDO objects but applies to operations on PDOStatement objects. For an example, see the description of errorcode(). execute ([array $params]) Executes a prepared statement and returns TRUE for success or FALSE for failure. If the statement contains placeholders, either bind data values to them before invoking execute(), or else pass the data values as parameters to execute(). For examples, see the descriptions of prepare(), bindparam(), and bindvalue(). mixed fetch ([int $fetch_mode [, int $cursor_orientation [, int $cursor_offset]]]) Returns the next row of the result set, or FALSE if there are no more rows. The row has the format determined by the statement handle s fetch mode, or by the $fetch_mode argument if present. The default fetch mode is PDO::FETCH_BOTH unless it has been
13 I.3 PDO Methods 1169 changed by calling setfetchmode() or the statement handle was obtained by a call to $dbh->query() for which a fetch mode was passed. Section I.3.4, PDO Constants, lists some of the permitted fetch modes. $sth = $dbh->query ("SELECT last_name, first_name FROM president"); while ($row = $sth->fetch ()) printf ("%s %s\n", $row[1], $row[0]); The $cursor_orientation and $cursor_offset arguments are used to control scrollable cursors. These two arguments do not apply to MySQL, which does not support scrollable cursors. array fetchall ([int $fetch_mode [, int $col_num = 0 [, array $constructor_args]]]) Returns any remaining rows of the result set as an array of rows. The fetch mode for the rows is determined the same way as for fetch(). $sth = $dbh->query ("SELECT last_name, first_name FROM president"); $rows = $sth->fetchall (); foreach ($rows as $row) printf ("%s %s\n", $row[1], $row[0]); If the fetch mode is PDO::FETCH_COLUMN, fetchall() returns an array containing the values from the column of the result set specified by $col_num. Column numbers begin with 0. $sth = $dbh->query ("SELECT last_name, first_name FROM president"); $first_names = $sth->fetchall (PDO::FETCH_COLUMN, 1); print (join (", ", $first_names). "\n"); The $constructor_args argument is used for a custom class constructor. See the PHP manual for details. string fetchcolumn ([int $col_num = 0]) Returns one column from the next row of the result set, or FALSE if there are no more rows. $col_num specifies which column to return. Column numbers begin with 0. If you need to fetch multiple columns from each row, do not use this method. $sth = $dbh->query ("SELECT COUNT(*) FROM member"); printf ("Number of members: %d\n", $sth->fetchcolumn (0)); mixed fetchobject ([string $class_name [, array $constructor_args]])
14 1170 Appendix I PHP API Reference Returns the next row of the result set as a class instance, or FALSE if there are no more rows or an error occurs. $sth = $dbh->query ("SELECT last_name, first_name FROM president"); while ($row = $sth->fetchobject ()) printf ("%s %s\n", $row->first_name, $row->last_name); $class_name is the name of the resulting class ( stdclass if none is given). The $constructor_args argument is used for a custom class constructor. See the PHP manual for details. mixed getattribute (int $attr) Returns the value of the specified statement-handle attribute, or raises an exception for failure. There are no MySQL-specific statement attributes, so the MySQL driver does not support getattribute() as a statement method. mixed getcolumnmeta (int $col_num) Returns an associative array containing metadata for the specified column of the result set, or FALSE if no such column exists. $col_num specifies which column to return. Column numbers begin with 0. $sth = $dbh->query ("SELECT last_name, first_name FROM president"); var_dump ($sth->getcolumnmeta (0)); var_dump ($sth->getcolumnmeta (1)); The information returned by this method is driver dependent. At the time of writing, the array returned by the MySQL driver contains the values shown in the following table. Name native_type flags table name len precision pdo_type Value The PHP native type for the column value Flags describing the column attributes The table containing the column (empty string for expressions) The column name The column length The column precision The column type (corresponds to a PDO::PARAM_ XXX value) nextrowset (void) Advances to the next rowset for a statement handle that has multiple rowsets. Returns TRUE for success or FALSE for failure.
15 I.3 PDO Methods 1171 Multiple rowsets can be produced by calling a stored procedure that produces multiple result sets, or by executing a statement string that contains multiple statements separated by semicolons. This is similar to processing multiple result sets using the C API (see Section 7.7, Using Multiple-Statement Execution ). $sth = $dbh->query ("SELECT last_name, first_name FROM president LIMIT 5; SELECT 1, 2, 3; SHOW TABLES"); do $rowset = $sth->fetchall (PDO::FETCH_NUM); if ($rowset) $count = 0; foreach ($rowset as $row) for ($i = 0; $i < sizeof ($row); $i++) print ($row[$i]. ($i < sizeof ($row) - 1? "," : "\n")); $count++; printf ("Number of rows returned: %d\n\n", $count); while ($sth->nextrowset ()); int rowcount (void) Returns the rows-affected count for the statement. Use this only with statements such as INSERT or DELETE that modify rows. To get a row count for statements such as SELECT that produce a result set, fetch the rows and count them because rowcount() is not guaranteed to be meaningful. setattribute (int $attr, mixed $value) Sets an attribute for the statement handle. The first argument names the attribute and the second provides its value. Returns TRUE for success or FALSE for failure. There are no MySQL-specific statement attributes, so the MySQL driver does not support setattribute() as a statement method. setfetchmode (int $fetch_mode [, fetch_mode_option ]...) Sets the row-fetching mode for the statement. Returns TRUE for success or FALSE for failure. The fetch mode affects how methods such as fetch() and fetchall() return rows when invoked with no explicit fetch-mode argument.
16 1172 Appendix I PHP API Reference $sth = $dbh->query ("SELECT last_name, first_name FROM president"); $sth->setfetchmode (PDO::FETCH_OBJ); while ($row = $sth->fetch ()) printf ("%s %s\n", $row->last_name, $row->first_name); Section I.3.4, PDO Constants, describes several of the fetch modes that may be passed for the $fetch_mode argument. For some values of $fetch_mode, additional arguments may be passed to setfetchmode() to affect how row-fetching methods work: setfetchmode (PDO::FETCH_COLUMN, int $col_num) Return a single column from rows of the result set. See the description for fetchcolumn(). setfetchmode (PDO::FETCH_CLASS, string $class_name, array $constructor_args) Return rows of the result set as a new class instance. See the description for fetchobject(). setfetchmode (PDO::FETCH_INTO, object $object) Return rows of the result set into an existing class instance, mapping result set columns onto properties of the object s class. I.3.3 PDOException Object Methods By default, PDO raises an exception only for the PDO constructor (that is, when you call new PDO() to connect to a database server), and other PDO methods indicate failure by their return value. If you enable PDO exceptions after connecting, the PDO extension instead raises exceptions when its methods fail. PDOException objects contain the error information provided as a result of such exceptions. To enable PDO exceptions, use the database handle: $dbh->setattribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); PDO supports three error modes: PDO::ERRMODE_SILENT : PDO does nothing other than set the error information. This is the default error mode. PDO::ERRMODE_WARNING : This is similar to silent mode, but PDO emits a warning message in addition to setting the error information. PDO::ERRMODE_EXCEPTION : PDO raises an exception after setting the error information. If exceptions are enabled, information about errors becomes available that you can get using the getcode() and getmessage() methods of the exception object.
17 I.3 PDO Methods 1173 Exceptions terminate your script by default. To handle them yourself, use try and catch. In the catch block, you can access the exception s methods that return error information: try $sth = $dbh->query ("SELECT * FROM no_such_table"); catch (PDOException $e) print ("getcode value: ". $e->getcode(). "\n"); print ("getmessage value: ". $e->getmessage(). "\n"); integer getcode (void) Returns a five-character SQLSTATE value containing the error code. A return value equal to PDO::ERR_NONE ( "00000" ) means no error. string getmessage (void) Returns a string containing the error message. I.3.4 PDO Constants This section describes some of the constants that can be used with PDO methods, such as the getattribute() and setattribute() methods for database handles. The values shown are representative only. For a complete list, see the PDO section of the PHP manual. General database-handle attributes: PDO::ATTR_AUTOCOMMIT The current autocommit mode. PDO::ATTR_CLIENT_VERSION A string describing the client library version. PDO::ATTR_CONNECTION_STATUS For MySQL, this indicates how the connection was made. PDO::ATTR_DEFAULT_FETCH_MODE The row-fetching mode. (Available as a database-handle attribute as of PHP ) PDO::ATTR_DRIVER_NAME The PDO driver name.
18 1174 Appendix I PHP API Reference PDO::ATTR_ERRMODE The error-handling mode. For descriptions of the permitted values, see Section I.3.3, PDOException Object Methods. PDO::ATTR_SERVER_INFO A string providing some server activity information. PDO::ATTR_SERVER_VERSION A string describing the server version. Fetch-mode values that control the form in which result set rows are fetched: PDO::FETCH_ASSOC Return an array with elements accessed by associative index. PDO::FETCH_BOTH Return an array with elements accessed by associative or numeric index. PDO::FETCH_BOUND Return row elements bound to PHP variables by preceding bindcolumn() calls. PDO::FETCH_CLASS Return row elements into properties of a new class instance. PDO::FETCH_INTO Return row elements into properties of an existing class instance. PDO::FETCH_NUM Return an array with elements accessed by numeric index. PDO::FETCH_OBJ Return an object with elements accessed as properties. Parameter-type values: PDO::PARAM_BOOL A ean parameter. PDO::PARAM_INT An integer parameter. PDO::PARAM_NULL Indicates a SQL NULL value. PDO::PARAM_STR A string parameter.
Writing MySQL Scripts with PHP and PDO
Writing MySQL Scripts with PHP and PDO Paul DuBois [email protected] Document revision: 1.02 Last update: 2013-08-11 PHP makes it easy to write scripts that access databases, enabling you to create dynamic
PHP Data Objects Layer (PDO) Ilia Alshanetsky
PHP Data Objects Layer (PDO) Ilia Alshanetsky What is PDO Common interface to any number of database systems. Written in C, so you know it s FAST! Designed to make use of all the PHP 5.1 features to simplify
Advanced Object Oriented Database access using PDO. Marcus Börger
Advanced Object Oriented Database access using PDO Marcus Börger ApacheCon EU 2005 Marcus Börger Advanced Object Oriented Database access using PDO 2 Intro PHP and Databases PHP 5 and PDO Marcus Börger
Writing Scripts with PHP s PEAR DB Module
Writing Scripts with PHP s PEAR DB Module Paul DuBois [email protected] Document revision: 1.02 Last update: 2005-12-30 As a web programming language, one of PHP s strengths traditionally has been to make
Real SQL Programming 1
Real 1 We have seen only how SQL is used at the generic query interface an environment where we sit at a terminal and ask queries of a database. Reality is almost always different: conventional programs
Database Driven Websites Using PHP with Informix
Database Driven Websites Using PHP with Informix February 12, 2013 Thomas Beebe Advanced DataTools Corp ([email protected]) Tom Beebe Tom is a Senior Database Consultant and has been with Advanced
"SQL Database Professional " module PRINTED MANUAL
"SQL Database Professional " module PRINTED MANUAL "SQL Database Professional " module All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
Advanced Tornado TWENTYONE. 21.1 Advanced Tornado. 21.2 Accessing MySQL from Python LAB
21.1 Advanced Tornado Advanced Tornado One of the main reasons we might want to use a web framework like Tornado is that they hide a lot of the boilerplate stuff that we don t really care about, like escaping
A Brief Introduction to MySQL
A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term
Writing MySQL Scripts With Python's DB-API Interface
Writing MySQL Scripts With Python's DB-API Interface By Paul DuBois, NuSphere Corporation (October 2001) TABLE OF CONTENTS MySQLdb Installation A Short DB-API Script Writing the Script Running the Script
InterBase 6. Embedded SQL Guide. Borland/INPRISE. 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com
InterBase 6 Embedded SQL Guide Borland/INPRISE 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com Inprise/Borland may have patents and/or pending patent applications covering subject
Writing MySQL Scripts with Python DB-API
Writing MySQL Scripts with Python DB-API Paul DuBois [email protected] Document revision: 1.02 Last update: 2006-09-17 Python is one of the more popular Open Source programming languages, owing largely
database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia [email protected]
Lukas Smith database abstraction layers in PHP BackendMedia 1 Overview Introduction Motivation PDO extension PEAR::MDB2 Client API SQL syntax SQL concepts Result sets Error handling High level features
Mimer SQL. Programmer s Manual. Version 8.2 Copyright 2000 Mimer Information Technology AB
Mimer SQL Version 8.2 Copyright 2000 Mimer Information Technology AB Second revised edition December, 2000 Copyright 2000 Mimer Information Technology AB. Published by Mimer Information Technology AB,
FileMaker 14. ODBC and JDBC Guide
FileMaker 14 ODBC and JDBC Guide 2004 2015 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and FileMaker Go are trademarks of FileMaker,
SQL Injection Attack Lab Using Collabtive
Laboratory for Computer Security Education 1 SQL Injection Attack Lab Using Collabtive (Web Application: Collabtive) Copyright c 2006-2011 Wenliang Du, Syracuse University. The development of this document
Zend Framework Database Access
Zend Framework Database Access Bill Karwin Copyright 2007, Zend Technologies Inc. Introduction What s in the Zend_Db component? Examples of using each class Using Zend_Db in MVC applications Zend Framework
Nortel Networks Symposium Call Center Server Symposium Database Integration User s Guide
297-2183-911 Nortel Networks Symposium Call Center Server Symposium Database Integration User s Guide Product release 5.0 Standard 1.0 April 2004 Nortel Networks Symposium Call Center Server Symposium
ODBC Chapter,First Edition
1 CHAPTER 1 ODBC Chapter,First Edition Introduction 1 Overview of ODBC 2 SAS/ACCESS LIBNAME Statement 3 Data Set Options: ODBC Specifics 15 DBLOAD Procedure: ODBC Specifics 25 DBLOAD Procedure Statements
Integrating VoltDB with Hadoop
The NewSQL database you ll never outgrow Integrating with Hadoop Hadoop is an open source framework for managing and manipulating massive volumes of data. is an database for handling high velocity data.
Q&A for Zend Framework Database Access
Q&A for Zend Framework Database Access Questions about Zend_Db component Q: Where can I find the slides to review the whole presentation after we end here? A: The recording of this webinar, and also the
PHP Tutorial From beginner to master
PHP Tutorial From beginner to master PHP is a powerful tool for making dynamic and interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
Web Development using PHP (WD_PHP) Duration 1.5 months
Duration 1.5 months Our program is a practical knowledge oriented program aimed at learning the techniques of web development using PHP, HTML, CSS & JavaScript. It has some unique features which are as
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
D61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to:
D61830GC30 for Developers Summary Duration Vendor Audience 5 Days Oracle Database Administrators, Developers, Web Administrators Level Technology Professional Oracle 5.6 Delivery Method Instructor-led
The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history.
Cloudera ODBC Driver for Impala 2.5.30 The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history. The following are highlights
Webapps Vulnerability Report
Tuesday, May 1, 2012 Webapps Vulnerability Report Introduction This report provides detailed information of every vulnerability that was found and successfully exploited by CORE Impact Professional during
Firebird. Embedded SQL Guide for RM/Cobol
Firebird Embedded SQL Guide for RM/Cobol Embedded SQL Guide for RM/Cobol 3 Table of Contents 1. Program Structure...6 1.1. General...6 1.2. Reading this Guide...6 1.3. Definition of Terms...6 1.4. Declaring
JavaScript: Introduction to Scripting. 2008 Pearson Education, Inc. All rights reserved.
1 6 JavaScript: Introduction to Scripting 2 Comment is free, but facts are sacred. C. P. Scott The creditor hath a better memory than the debtor. James Howell When faced with a decision, I always ask,
SMTP-32 Library. Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows. Version 5.2
SMTP-32 Library Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows Version 5.2 Copyright 1994-2003 by Distinct Corporation All rights reserved Table of Contents 1 Overview... 5 1.1
Working with Indicee Elements
Working with Indicee Elements How to Embed Indicee in Your Product 2012 Indicee, Inc. All rights reserved. 1 Embed Indicee Elements into your Web Content 3 Single Sign-On (SSO) using SAML 3 Configure an
A basic create statement for a simple student table would look like the following.
Creating Tables A basic create statement for a simple student table would look like the following. create table Student (SID varchar(10), FirstName varchar(30), LastName varchar(30), EmailAddress varchar(30));
Using IRDB in a Dot Net Project
Note: In this document we will be using the term IRDB as a short alias for InMemory.Net. Using IRDB in a Dot Net Project ODBC Driver A 32-bit odbc driver is installed as part of the server installation.
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new
Database Programming with PL/SQL: Learning Objectives
Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs
SQL Injection Attack Lab
CMSC 426/626 Labs 1 SQL Injection Attack Lab CMSC 426/626 Based on SQL Injection Attack Lab Using Collabtive Adapted and published by Christopher Marron, UMBC Copyright c 2014 Christopher Marron, University
Embedded SQL programming
Embedded SQL programming http://www-136.ibm.com/developerworks/db2 Table of contents If you're viewing this document online, you can click any of the topics below to link directly to that section. 1. Before
Erlang ODBC Copyright 1999-2015 Ericsson AB. All Rights Reserved. Erlang ODBC 2.11.1 December 15, 2015
Erlang ODBC Copyright 1999-2015 Ericsson AB. All Rights Reserved. Erlang ODBC 2.11.1 December 15, 2015 Copyright 1999-2015 Ericsson AB. All Rights Reserved. Licensed under the Apache License, Version 2.0
The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.
Content Introduction... 2 Data Access Server Control Panel... 2 Running the Sample Client Applications... 4 Sample Applications Code... 7 Server Side Objects... 8 Sample Usage of Server Side Objects...
Web development... the server side (of the force)
Web development... the server side (of the force) Fabien POULARD Document under license Creative Commons Attribution Share Alike 2.5 http://www.creativecommons.org/learnmore Web development... the server
PHP Integration Kit. Version 2.5.1. User Guide
PHP Integration Kit Version 2.5.1 User Guide 2012 Ping Identity Corporation. All rights reserved. PingFederate PHP Integration Kit User Guide Version 2.5.1 December, 2012 Ping Identity Corporation 1001
FileMaker 13. ODBC and JDBC Guide
FileMaker 13 ODBC and JDBC Guide 2004 2013 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and Bento are trademarks of FileMaker, Inc.
PHP Language Binding Guide For The Connection Cloud Web Services
PHP Language Binding Guide For The Connection Cloud Web Services Table Of Contents Overview... 3 Intended Audience... 3 Prerequisites... 3 Term Definitions... 3 Introduction... 4 What s Required... 5 Language
Handling Exceptions. Copyright 2006, Oracle. All rights reserved. Oracle Database 10g: PL/SQL Fundamentals 8-1
Handling Exceptions Copyright 2006, Oracle. All rights reserved. Oracle Database 10g: PL/SQL Fundamentals 8-1 Objectives After completing this lesson, you should be able to do the following: Define PL/SQL
Installing and Sending with DocuSign for NetSuite v2.2
DocuSign Quick Start Guide Installing and Sending with DocuSign for NetSuite v2.2 This guide provides information on installing and sending documents for signature with DocuSign for NetSuite. It also includes
Programming Database lectures for mathema
Programming Database lectures for mathematics students April 25, 2015 Functions Functions are defined in Postgres with CREATE FUNCTION name(parameter type,...) RETURNS result-type AS $$ function-body $$
FileMaker 12. ODBC and JDBC Guide
FileMaker 12 ODBC and JDBC Guide 2004 2012 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and Bento are trademarks of FileMaker, Inc.
Bill Karwin s. IBPerl User s Guide. IBPerl. http://www.karwin.com
Bill Karwin s IBPerl User s Guide IBPerl http://www.karwin.com Copyright 2000 Bill Karwin. All rights reserved. All InterBase products are trademarks or registered trademarks of InterBase Software Corporation.
Cleo Communications. CUEScript Training
Cleo Communications CUEScript Training Introduction RMCS Architecture Why CUEScript, What is it? How and Where Scripts in RMCS XML Primer XPath Pi Primer Introduction (cont.) Getting Started Scripting
ODBC Client Driver Help. 2015 Kepware, Inc.
2015 Kepware, Inc. 2 Table of Contents Table of Contents 2 4 Overview 4 External Dependencies 4 Driver Setup 5 Data Source Settings 5 Data Source Setup 6 Data Source Access Methods 13 Fixed Table 14 Table
JAVASCRIPT AND COOKIES
JAVASCRIPT AND COOKIES http://www.tutorialspoint.com/javascript/javascript_cookies.htm Copyright tutorialspoint.com What are Cookies? Web Browsers and Servers use HTTP protocol to communicate and HTTP
Data Tool Platform SQL Development Tools
Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6
Architecting the Future of Big Data
Hive ODBC Driver User Guide Revised: July 22, 2013 2012-2013 Hortonworks Inc. All Rights Reserved. Parts of this Program and Documentation include proprietary software and content that is copyrighted and
ANDROID APPS DEVELOPMENT FOR MOBILE GAME
ANDROID APPS DEVELOPMENT FOR MOBILE GAME Lecture 7: Data Storage and Web Services Overview Android provides several options for you to save persistent application data. Storage Option Shared Preferences
MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC
MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL
Chapter 9, More SQL: Assertions, Views, and Programming Techniques
Chapter 9, More SQL: Assertions, Views, and Programming Techniques 9.2 Embedded SQL SQL statements can be embedded in a general purpose programming language, such as C, C++, COBOL,... 9.2.1 Retrieving
Advanced Web Technology 10) XSS, CSRF and SQL Injection 2
Berner Fachhochschule, Technik und Informatik Advanced Web Technology 10) XSS, CSRF and SQL Injection Dr. E. Benoist Fall Semester 2010/2011 Table of Contents Cross Site Request Forgery - CSRF Presentation
FmPro Migrator - FileMaker to SQL Server
FmPro Migrator - FileMaker to SQL Server FmPro Migrator - FileMaker to SQL Server 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 FmPro Migrator - FileMaker to SQL Server Migration
Database 10g Edition: All possible 10g features, either bundled or available at additional cost.
Concepts Oracle Corporation offers a wide variety of products. The Oracle Database 10g, the product this exam focuses on, is the centerpiece of the Oracle product set. The "g" in "10g" stands for the Grid
4D v11 SQL Release 3 (11.3) ADDENDUM
ADDENDUM Welcome to release 3 of 4D v11 SQL. This document describes the new features and modifications found in this new version of the program, as summarized below: Several new features concerning the
1 Introduction FrontBase is a high performance, scalable, SQL 92 compliant relational database server created in the for universal deployment.
FrontBase 7 for ios and Mac OS X 1 Introduction FrontBase is a high performance, scalable, SQL 92 compliant relational database server created in the for universal deployment. On Mac OS X FrontBase can
SQL Tuning and Maintenance for the Altiris Deployment Server express database.
Article ID: 22953 SQL Tuning and Maintenance for the Altiris Deployment Server express database. Question Now Deployment Server is installed how do I manage the express database? Topics that will be covered
MOC 20461C: Querying Microsoft SQL Server. Course Overview
MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server
MXSAVE XMLRPC Web Service Guide. Last Revision: 6/14/2012
MXSAVE XMLRPC Web Service Guide Last Revision: 6/14/2012 Table of Contents Introduction! 4 Web Service Minimum Requirements! 4 Developer Support! 5 Submitting Transactions! 6 Clients! 7 Adding Clients!
DiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com [email protected] 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
SelectSurvey.NET User Manual
SelectSurvey.NET User Manual Creating Surveys 2 Designing Surveys 2 Templates 3 Libraries 4 Item Types 4 Scored Surveys 5 Page Conditions 5 Piping Answers 6 Previewing Surveys 7 Managing Surveys 7 Survey
Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl
First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End
IceWarp Server. Log Analyzer. Version 10
IceWarp Server Log Analyzer Version 10 Printed on 23 June, 2009 i Contents Log Analyzer 1 Quick Start... 2 Required Steps... 2 Optional Steps... 2 Advanced Configuration... 5 Log Importer... 6 General...
INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP
INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP by Dalibor D. Dvorski, March 2007 Skills Canada Ontario DISCLAIMER: A lot of care has been taken in the accuracy of information provided in this article,
Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4)
Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4) The purpose of this document is to help a beginner to install all the elements necessary to use NWNX4. Throughout
Facebook Twitter YouTube Google Plus Website Email
PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute
Detecting (and even preventing) SQL Injection Using the Percona Toolkit and Noinject!
Detecting (and even preventing) SQL Injection Using the Percona Toolkit and Noinject! Justin Swanhart Percona Live, April 2013 INTRODUCTION 2 Introduction 3 Who am I? What do I do? Why am I here? The tools
A table is a collection of related data entries and it consists of columns and rows.
CST 250 MySQL Notes (Source: www.w3schools.com) MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables.
HOW-TO. Access Data using BCI. Brian Leach Consulting Limited. http://www.brianleach.co.uk
HOW-TO Access Data using BCI http://www.brianleach.co.uk Contents Introduction... 3 Notes... 4 Defining the Data Source... 5 Check the Definition... 7 Setting up the BCI connection... 8 Starting with BCI...
Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2
Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................
Project 2: Web Security Pitfalls
EECS 388 September 19, 2014 Intro to Computer Security Project 2: Web Security Pitfalls Project 2: Web Security Pitfalls This project is due on Thursday, October 9 at 6 p.m. and counts for 8% of your course
5 Arrays and Pointers
5 Arrays and Pointers 5.1 One-dimensional arrays Arrays offer a convenient way to store and access blocks of data. Think of arrays as a sequential list that offers indexed access. For example, a list of
G563 Quantitative Paleontology. SQL databases. An introduction. Department of Geological Sciences Indiana University. (c) 2012, P.
SQL databases An introduction AMP: Apache, mysql, PHP This installations installs the Apache webserver, the PHP scripting language, and the mysql database on your computer: Apache: runs in the background
INTEGRATING MICROSOFT DYNAMICS CRM WITH SIMEGO DS3
INTEGRATING MICROSOFT DYNAMICS CRM WITH SIMEGO DS3 Often the most compelling way to introduce yourself to a software product is to try deliver value as soon as possible. Simego DS3 is designed to get you
More SQL: Assertions, Views, and Programming Techniques
9 More SQL: Assertions, Views, and Programming Techniques In the previous chapter, we described several aspects of the SQL language, the standard for relational databases. We described the SQL statements
Intro to Embedded SQL Programming for ILE RPG Developers
Intro to Embedded SQL Programming for ILE RPG Developers Dan Cruikshank DB2 for i Center of Excellence 1 Agenda Reasons for using Embedded SQL Getting started with Embedded SQL Using Host Variables Using
Oracle Database: SQL and PL/SQL Fundamentals NEW
Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the
Oracle Database: SQL and PL/SQL Fundamentals
Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to
SQL PDO and Microsoft SQL Server
SQL PDO and Microsoft SQL Server By: Blue Parabola, LLC Contents Accessing Databases using PHP... 4 Installing SQL Server Driver for PHP 2.0... 6 Accessing SQL Server from PHP... 8 PDO: The Why and the
Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner
1 vk» Java 7 Recipes (,\['«** - < g!p#«josh Juneau Carl Dea Freddy Guime John O'Conner Contents J Contents at a Glance About the Authors About the Technical Reviewers Acknowledgments Introduction iv xvi
MASTERTAG DEVELOPER GUIDE
MASTERTAG DEVELOPER GUIDE TABLE OF CONTENTS 1 Introduction... 4 1.1 What is the zanox MasterTag?... 4 1.2 What is the zanox page type?... 4 2 Create a MasterTag application in the zanox Application Store...
Log Analyzer Reference
IceWarp Unified Communications Log Analyzer Reference Version 10.4 Printed on 27 February, 2012 Contents Log Analyzer 1 Quick Start... 2 Required Steps... 2 Optional Steps... 3 Advanced Configuration...
An Introduction to Developing ez Publish Extensions
An Introduction to Developing ez Publish Extensions Felix Woldt Monday 21 January 2008 12:05:00 am Most Content Management System requirements can be fulfilled by ez Publish without any custom PHP coding.
Preface. DirXmetahub Document Set
Preface DirXmetahub Document Set Preface This manual is reference for the DirXmetahub meta agents. It consists of the following sections: Chapter 1 introduces the set of DirXmetahub meta agents. Chapter
MarkLogic Server. Node.js Application Developer s Guide. MarkLogic 8 February, 2015. Copyright 2016 MarkLogic Corporation. All rights reserved.
Node.js Application Developer s Guide 1 MarkLogic 8 February, 2015 Last Revised: 8.0-5, March, 2016 Copyright 2016 MarkLogic Corporation. All rights reserved. Table of Contents Table of Contents Node.js
Data Mailbox. support.ewon.biz. Reference Guide
Reference Guide RG 005-0-EN / Rev. 1.0 Data Mailbox The Data Mailbox is a Talk2M service that gathers ewon historical data and makes it available for third party applications in an easy way. support.ewon.biz
Architecting the Future of Big Data
Hive ODBC Driver User Guide Revised: July 22, 2014 2012-2014 Hortonworks Inc. All Rights Reserved. Parts of this Program and Documentation include proprietary software and content that is copyrighted and
Services. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.
& & 1 & 2 Lecture #7 2008 3 Terminology Structure & & Database server software referred to as Database Management Systems (DBMS) Database schemas describe database structure Data ordered in tables, rows
PostgreSQL Functions By Example
Postgre [email protected] credativ Group January 20, 2012 What are Functions? Introduction Uses Varieties Languages Full fledged SQL objects Many other database objects are implemented with them
JAVA r VOLUME II-ADVANCED FEATURES. e^i v it;
..ui. : ' :>' JAVA r VOLUME II-ADVANCED FEATURES EIGHTH EDITION 'r.", -*U'.- I' -J L."'.!'.;._ ii-.ni CAY S. HORSTMANN GARY CORNELL It.. 1 rlli!>*-
Filtered Views for Microsoft Dynamics CRM
Filtered Views for Microsoft Dynamics CRM Version 4.2.13, March 5, 2010 Copyright 2009-2010 Stunnware GmbH - 1 of 32 - Contents Overview... 3 How it works... 4 Setup... 5 Contents of the download package...
Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
