dark_mode EN
  • Method WMariaDbQuery :SqlUpdate
  • Parameters
    hRecord

    Hash with the field names and values of the record

    cTable (optional)

    Table name

    hOriginal (optional)

    Hash with the original values of the record

  • Return value
    cSql

    SQL string

Creates the SQL statement to edit a record in a specific table. It uses the hash obtained through the Record method as its first parameter. The second parameter is the name of the table into which the insertion is to be performed. The third parameter is optional and indicates a hash of the original record data. If this last parameter is passed, the SQL statement will only contain the fields that have actually been modified.

The created statement is an UPDATE statement that includes all the fields and values ??for the new record. It also includes the ' WHERE ' clause, and it is the programmer's responsibility to include the additional information for that clause.

Previous chevron_left Next chevron_right