D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertFromDb
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareAssignment
prepareInsert
prepareMerge
prepareUpdate
quote
softCastTextToChar
prepareInsert
array public \Bitrix\Main\DB\SqlHelper::prepareInsert( string $tableName, array $fields );
This non-static method builds the strings for the SQL INSERT command for the specified table.
Parameters
Parameter | Description | Version |
---|---|---|
$tableName | Table name. | |
$fields | Array type:
Array("column" => $value)[] |
Examples
© «Bitrix24», 2001-2024
Up