- After the additions and deletions to modify the database SQL statement is finished, will not immediately be written to the database, but also need to manually submit the data - if the data in question can also roll back - the primary key: in a table, a field the only non-null value, this field as the primary key, a function is unique identification data - to increase the data - INSERT INTO table name (field 1, field 2, ...) values (value 1, value 2, ...) - the primary key value must be given to allow for the NULL fields can not give value - insert the statement after the table name in the field is to conduct a field assignment, fields, and values must be one to one, fields and values have the same order and number - if the whole field is inserted, may be omitted fields were - iNSERT INTO table values (value 1, value 2, ...) - delete data - delete from table: delete All data in the table - the delete from table where conditions: deleted qualified data - TRUNCATE the table table name: delete all the data in the table, more efficient than the delete - update data -update table field name = new set value, the new field name value of 2 = 2, ... WHERE condition - Data Backup - table-level backup (backup table structure and only the data is not backed up constraints) - all backup: - the Create the table new table as select * from table to back up - a partial backup: - the Create new table as select the table field 1, field 2, ... from the table name to be backed up - data whole insert - iNSERT INTO table name insert select * from table name - must be the same number of fields in the query results table names and field into the number of the same type
Oracle - related additions and deletions
Guess you like
Origin www.cnblogs.com/mpci/p/12195489.html
Ranking