Changeset 18573 for trunk/wp-includes/wp-db.php
- Timestamp:
- 08/19/2011 03:01:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r18350 r18573 843 843 * 844 844 * The following directives can be used in the query format string: 845 * %d ( decimal number)845 * %d (integer) 846 846 * %s (string) 847 847 * %% (literal percentage sign - no argument needed) … … 850 850 * Literals (%) as parts of the query must be properly written as %%. 851 851 * 852 * This function only supports a small subset of the sprintf syntax; it only supports %d ( decimal number), %s (string).852 * This function only supports a small subset of the sprintf syntax; it only supports %d (integer), %s (string). 853 853 * Does not support sign, padding, alignment, width or precision specifiers. 854 854 * Does not support argument numbering/swapping. … … 1133 1133 * @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped). 1134 1134 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data. 1135 * A format is one of '%d', '%s' ( decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1135 * A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1136 1136 * @return int|false The number of rows inserted, or false on error. 1137 1137 */ … … 1156 1156 * @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped). 1157 1157 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data. 1158 * A format is one of '%d', '%s' ( decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1158 * A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1159 1159 * @return int|false The number of rows affected, or false on error. 1160 1160 */ … … 1177 1177 * @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped). 1178 1178 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data. 1179 * A format is one of '%d', '%s' ( decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1179 * A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1180 1180 * @return int|false The number of rows affected, or false on error. 1181 1181 */ … … 1216 1216 * @param array $where A named array of WHERE clauses (in column => value pairs). Multiple clauses will be joined with ANDs. Both $where columns and $where values should be "raw". 1217 1217 * @param array|string $format Optional. An array of formats to be mapped to each of the values in $data. If string, that format will be used for all of the values in $data. 1218 * A format is one of '%d', '%s' ( decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1219 * @param array|string $format_where Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where. A format is one of '%d', '%s' ( decimal number, string). If omitted, all values in $where will be treated as strings.1218 * A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1219 * @param array|string $format_where Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where. A format is one of '%d', '%s' (integer, string). If omitted, all values in $where will be treated as strings. 1220 1220 * @return int|false The number of rows updated, or false on error. 1221 1221 */
Note: See TracChangeset
for help on using the changeset viewer.