group_end ( ) ¶ Returns:Įnds a group expression. Starts a group expression, using OR NOTs for the conditions inside it. Starts a group expression, using AND NOTs for the conditions inside it. Starts a group expression, using ORs for the conditions inside it. Starts a group expression, using ANDs for the conditions inside it. $values ( array) – Array of target values.$key ( string) – Name of field to examine.Generates a WHERE field NOT IN(‘item’, ‘item’) SQL query, Generates a WHERE field IN(‘item’, ‘item’) SQL query, $values ( array) – The values searched on.Generates the WHERE portion of the query. $value ( mixed) – If a single key, compared to this value.$key ( mixed) – Name of field to compare, or associative array.$cond ( string) – The JOIN ON conditionĪdds a JOIN clause to a query.$from ( mixed) – Table name(s) string or array.Sets a flag which tells the query builder to addĪ DISTINCT clause to the SELECT portion of the query. $val ( bool) – Desired value of the “distinct” flag.$select ( string) – Field to compute the sum ofĪdds a SELECT SUM(field) clause to a query.$select ( string) – Field to compute the minimum ofĪdds a SELECT MIN(field) clause to a query.$select ( string) – Field to compute the maximum ofĪdds a SELECT MAX(field) clause to a query.$alias ( string) – Alias for the resulting value nameĪdds a SELECT AVG(field) clause to a query.$select ( string) – Field to compute the average of.$escape ( bool) – Whether to escape values and identifiersĪdds a SELECT clause to a query.$select ( string) – The SELECT portion of a query.Same as get(), but also allows the WHERE to be added directly. $table ( mixed) – The table(s) to fetch data from string or array.get ( ] ] ) ¶ Parameters:Ĭompiles and runs SELECT statement based on the alreadyĬalled Query Builder methods. Generates a platform-specific query string that countsĪll records returned by an Query Builder query. $reset ( bool) – Whether to reset values for SELECTs.Prepends a database prefix, if one exists in configuration. $table ( string) – The table name to prefix.Sets the database prefix, without having to reconnect. $prefix ( string) – The new prefix to use.flush_cache ( ) ¶ Returns:Įmpties the Query Builder cache. To build a query that can be cancelled under certain conditions. Carlos Soublette #8-35Ĭarrera 52 con Ave.Class Reference ¶ class CI_DB_query_builder ¶ reset_query ( ) ¶ Returns:ĬI_DB_query_builder instance (method chaining) MySQL Examples MySQL Examples MySQL Editor MySQL Quiz MySQL Exercises MySQL CertificateĬarrera 22 con Ave. String Functions ASCII CHAR_LENGTH CHARACTER_LENGTH CONCAT CONCAT_WS FIELD FIND_IN_SET FORMAT INSERT INSTR LCASE LEFT LENGTH LOCATE LOWER LPAD LTRIM MID POSITION REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPACE STRCMP SUBSTR SUBSTRING SUBSTRING_INDEX TRIM UCASE UPPER Numeric Functions ABS ACOS ASIN ATAN ATAN2 AVG CEIL CEILING COS COT COUNT DEGREES DIV EXP FLOOR GREATEST LEAST LN LOG LOG10 LOG2 MAX MIN MOD PI POW POWER RADIANS RAND ROUND SIGN SIN SQRT SUM TAN TRUNCATE Date Functions ADDDATE ADDTIME CURDATE CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURTIME DATE DATEDIFF DATE_ADD DATE_FORMAT DATE_SUB DAY DAYNAME DAYOFMONTH DAYOFWEEK DAYOFYEAR EXTRACT FROM_DAYS HOUR LAST_DAY LOCALTIME LOCALTIMESTAMP MAKEDATE MAKETIME MICROSECOND MINUTE MONTH MONTHNAME NOW PERIOD_ADD PERIOD_DIFF QUARTER SECOND SEC_TO_TIME STR_TO_DATE SUBDATE SUBTIME SYSDATE TIME TIME_FORMAT TIME_TO_SEC TIMEDIFF TIMESTAMP TO_DAYS WEEK WEEKDAY WEEKOFYEAR YEAR YEARWEEK Advanced Functions BIN BINARY CASE CAST COALESCE CONNECTION_ID CONV CONVERT CURRENT_USER DATABASE IF IFNULL ISNULL LAST_INSERT_ID NULLIF SESSION_USER SYSTEM_USER USER VERSION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |