using 'as' function to cahnge name of table in query code example Example: sql change table name ALTER TABLE exampletable RENAME TO new_table_name;