KI_MOVE_TABLE

Rename a database table

Synopsis:
CALL KI_MOVE_TABLE connection, source$, target$ TO status
status = 'ki_move_table( connection, source$, target$ )
ArgumentEnumerationPurpose
connectionDatabase connection
source$Source table
target$Target table
statusKDB_ERROR_ENUMReturn status
>KI_MOVE_TABLE

KI_MOVE_TABLE

This function will rename a database table source$ to the table target$ in the database open on connection handle conn. In the case of legacy native KISAM on the default connection database the table names are filenames relative to the current working directory. For KDB, Oracle or similar databases they will be table names with optional user prefixes.

History
Introduced in KCML 5.00
See Also:
KI_COPY_TABLE, KI_CREATE, KI_CREATE_TMP, KI_DELETE_ROWS, KI_GET_SERIAL, KI_GROW, KI_INFO, KI_INITIALISE, KI_LOCK_ALL, KI_LOCK_OWNER, KI_MOVE_ROWS, KI_OPEN, KI_READ, KI_READ_HOLD, KI_READ_HOLD_NEXT, KI_READ_HOLD_PTR, KI_READ_NEXT, KI_READ_PTR, KI_READ_RAW, KI_REBUILD, KI_REWRITE, KI_SET_EXTENT, KI_SET_ROWS, KI_SET_SERIAL, KI_SET_WLOCK_COUNT, KI_SIZE_FILE, KI_START, KI_START_BEG, KI_UNLOCK, KI_UNLOCK_FILE, KI_VERIFY, KI_WMODE_BITMAP, KI_WRITE, KI_WRITE_PTR, KI_WRITE_RAW, KI_WS_CREATE, KI_WS_DELETE, KI_WS_OPEN, KI_WS_READ, KI_WS_REWRITE, KI_WS_WRITE
KCML database status codes