db_result_t db_drop_field ( db_t  hdb,
const db_objname_t table,
const db_objname_t field 
)

Drop a field from a table.

DBDLL_API db_result_t db_update_field(db_t, const db_objname_t * table, const db_objname_t * field, const db_fielddef_t*);

Parameters:
hdb Database handle.
table Table name.
field Field name. A name must start with a letter and can be followed by one or more letters, numbers, or underscores.
Returns:
On failure, one of the following error codes is set:

A table can only be altered or dropped when there is no active transaction. If a transaction has been started, db_commit_tx or db_abort_tx must be used before db_drop_table can be called.

See also:
db_add_field, db_rename_field, db_update_field,
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.