These 'mysql' query objects have additional MySQL-specific behaviors.
calcFoundRows()
to add or removeSQL_CALC_FOUND_ROWS
flagcache()
to add or removeSQL_CACHE
flagnoCache()
to add or removeSQL_NO_CACHE
flagbigResult()
to add or removeSQL_BIG_RESULT
flagsmallResult()
to add or removeSQL_SMALL_RESULT
flagbufferResult()
to add or removeSQL_BUFFER_RESULT
flaghighPriority()
to add or removeHIGH_PRIORITY
flagstraightJoin()
to add or removeSTRAIGHT_JOIN
flag
orReplace()
to add or removeOR REPLACE
highPriority()
to add or removeHIGH_PRIORITY
flaglowPriority()
to add or removeLOW_PRIORITY
flagignore()
to add or removeIGNORE
flagdelayed()
to add or removeDELAYED
flag
In addition, the MySQL Insert object has support for ON DUPLICATE KEY UPDATE
:
onDuplicateKeyUpdate($col, $raw_value)
sets a raw valueonDuplicateKeyUpateCol($col, $value)
is acol()
equivalent for the updateonDuplicateKeyUpdateCols($cols)
is acols()
equivalent for the update
Placeholders for bound values in the ON DUPLICATE KEY UPDATE
portions will be
automatically suffixed with __on_duplicate key
to deconflict them from the
insert placeholders.
lowPriority()
to add or removeLOW_PRIORITY
flagignore()
to add or removeIGNORE
flagwhere()
andorWhere()
to add WHERE conditions flagorderBy()
to add an ORDER BY clause flaglimit()
to set a LIMIT count
lowPriority()
to add or removeLOW_PRIORITY
flagignore()
to add or removeIGNORE
flagquick()
to add or removeQUICK
flagorderBy()
to add an ORDER BY clauselimit()
to set a LIMIT count