smf_db_insert_sql

Description

Returns the appropriate "INSERT" statement(s) to insert the current data for this table.

Syntax

string smf_db_insert_sql (string $tableName)



Parameter $tableName

Expected type: String
Description: The name of the table



Return value

Expected type: Escaped String
Description: Formatted SQL string containing one or more INSERT statements for this table


Notes

  • Used by SMF when creating a database dump.
  • Returns a formatted string of one or more INSERT statements
  • Uses \r\n (carriage return, line break) and \t (tab) to format the statements
  • Adds a new INSERT statement after every 250 rows
  • Escapes things as needed
Advertisement: