Changeset 18714 for trunk/wp-includes/wp-db.php
- Timestamp:
- 09/19/2011 05:15:44 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r18639 r18714 844 844 * The following directives can be used in the query format string: 845 845 * %d (integer) 846 * %f (float) 846 847 * %s (string) 847 848 * %% (literal percentage sign - no argument needed) 848 849 * 849 * Both %dand %s are to be left unquoted in the query string and they need an argument passed for them.850 * All of %d, %f, and %s are to be left unquoted in the query string and they need an argument passed for them. 850 851 * Literals (%) as parts of the query must be properly written as %%. 851 852 * 852 * This function only supports a small subset of the sprintf syntax; it only supports %d (integer), % s (string).853 * This function only supports a small subset of the sprintf syntax; it only supports %d (integer), %f (float), and %s (string). 853 854 * Does not support sign, padding, alignment, width or precision specifiers. 854 855 * Does not support argument numbering/swapping. … … 1133 1134 * @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 1135 * @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' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1136 * A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1136 1137 * @return int|false The number of rows inserted, or false on error. 1137 1138 */ … … 1156 1157 * @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 1158 * @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' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1159 * A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1159 1160 * @return int|false The number of rows affected, or false on error. 1160 1161 */ … … 1177 1178 * @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 1179 * @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' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.1180 * A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1180 1181 * @return int|false The number of rows affected, or false on error. 1181 1182 */ … … 1216 1217 * @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 1218 * @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' (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.1219 * A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 1220 * @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', '%f', '%s' (integer, float, string). If omitted, all values in $where will be treated as strings. 1220 1221 * @return int|false The number of rows updated, or false on error. 1221 1222 */
Note: See TracChangeset
for help on using the changeset viewer.