# db_select_table

Definition: | integer i = db_select_table(string st)
Description: | The table with name given by st, becomes the current table. The return code, i, is DB_OK if the table exists in the current database, otherwise you get DB_OPEN_FAIL.
pwa/p2js: | Not supported
Comments: | All record-level database operations apply automatically to the current table. The function db_current_table() returns the name of the current table, or "" if none.
Example: |
    if db_select_table("salary") != DB_OK then
        puts(2, "Couldn't find salary table!\n")
        abort(1)
    end if
See Also: | db_create_table, db_delete_table