Encounter Ora-14047:alter table| INDEX RENAME May is combined with other operations error[[email protected] ~]$ sqlplus lc0029999/aaaaaasql*plus:release 11.2.0.4.0 Production on Wed June 00:11:32 2015Copyright (c) 1982,-Oracle. All rights reserved.
MySQL database ALTER command explanation, MySQL ALTER command explanation
MySQL is a Relational Database Management System. This so-called "Relational" can be understood as "tables". A Relational Database consists of one or more tables.
When we need
DB2 Alter Table introduction and use of normal Table modification and creation, you need to consider the following two situations: 1. when data is stored in a table, you can only modify the Data Type of the column to a compatible data type, or keep
ALTER TABLE allows you to modify the structure of an existing table. For example, you can add or delete columns, create or eliminate indexes, change the type of existing columns, or rename columns or the table itself. You can also change the
Name
Alter table -- change the definition of a table
Synopsis
ALTER TABLE [ ONLY ] name [ * ] action [, ... ]ALTER TABLE [ ONLY ] name [ * ] RENAME [ COLUMN ] column TO new_columnALTER TABLE name RENAME TO new_nameALTER TABLE name SET
1 alter Database: modify data files
Alter database datafile 4 offline;
Alter database datafile '/opt/Oracle/datafile/users01.dbf' offline;
Alter database datafile '/opt/Oracle/datafile/users01.dbf' resize 100 m;
Alter database datafile
If you have a string in an SQL statement that is enclosed in a single or double quotation mark, you need to be consistent in the same table, or you will see a "Row not found" error.
Use of ALTER statements the use of ALTER statements requires that
Rename a tableThe basic syntax for renaming a table is: The code is as follows:Copy code Alter table table_nameRename to new_table_name;For example:Alter table suppliers This will rename the Supplier table vendor. Add columns in the table
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.