Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/db rename field

Renames a field in a table.

Syntax

bool db_rename_field(string tablename, string currentname, string newname)

Arguments

  • tablename is the name of the table that will be affected.
  • currentname is the current name of the field (column).
  • newname is the name that will be given to the field.

Result

The function returns TRUE if successful or FALSE otherwise.

Example

// Edit the name of the field "telefon" in mytable

$result = db_rename_field("mytable", "telefon", "Tel./Fax");

See also


Winbinder Projects