answersLogoWhite

0


Best Answer

Update and Alter are two SQL (Structured Query Language) commands used for modifying databases. Update statement is used to update existing records in a database. Update is a Data Manipulation Language (DML) statement. Alter SQL command is used to modify, delete or add a column to an existing table in a database. Alter is a Data Definition Language (DDL) statement.Commands that are used to define the structure of a database (database schema) are called DDL statements.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between alter and update commands in sql?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

You are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands givenwhether it will update and alter the table or not?

Your update should be recorded in the database. It depends on what type of crash. You should have hardware redundency, which if one component fails, a backup will ensure your update. All you can really do, is once the system is back up, check the table to see if the update is there.


What is the difference between edit and browse?

Browse is "To look for", and edit is "to alter or change."


What are sql commands?

SQL commands are specific structured query language keywords that are used to create, alter, and view data held withing a database. (Ex. SELECT, CREATE, ALTER) For more information about SQL: http://en.wikipedia.org/wiki/SQL


What is difference between alter and modify on oracle?

MODIFY is a clause used within an ALTER statement, such as ALTER TABLE, ALTER INDEX or ALTER MATERIALIZED VIEW, etc. That is, MODIFY isn't a command by itself. For example, you might change the length of a text column in a table with the following: ALTER TABLE employee MODIFY (email_address VARCHAR(132));


What is the difference between alter session and alter system?

Use the ALTER SESSION statement to specify or modify any of the conditions or parameters that affect your connection to the database. The statement stays in effect until you disconnect from the database. Use the ALTER SYSTEM statement to dynamically alter your Oracle instance. The settings stay in effect as long as the database is mounted. Ankit Kapse


Is there a difference between a mixture and a solution?

the ingredients, types of things put in, of a mixture do not change the ingredients in solutions react with and alter each other chemically


Where is the cheat menu on red faction?

No true cheat menu. You have to go under the tilde or ~ key with console commands and alter the code.


How did the enlightenment alter the relationship between owners and slaves?

we are all humans so we should not keep any difference in slaves and owners so we should treat them as our friends.


What is a synonym for revise?

A synonym for revise is edit.


Explain the DDL and DML commands in sql with example?

DDL--Data Definition Languageand Commands for DDL as:1.CREATE DATABASE--create a new data base2.ALTER DATABASE---modifies a database3.CREATE TABLE---create a new table4.ALTER TABLE---modifies a table5.DROP TABLE---deletes a table6.CREATE INDEX---creates an index(search key)7.DROP INDEX---deletes an indexDML---Data Manipulation LanguageCommands from the DML part of SQL:1.SELECT----extracts data from a database2.UPDATE--updates data in a database3.DELETE---deletes data from a database4.INSERT INTO---insert new data into a database


What is the difference between the words amend and emend?

emend means to make improvement or correction in text only,while amend means to alter,rephrase,to remove or correct faults.


Basic commands in oracle?

See the list of Commands in Oracle ANALYZE AUDIT CALL CREATE CLUSTER ALTER CLUSTER DROP CLUSTER COMMENT COMMIT CONNECT CONSTRAINT CREATE CONTEXT DROP CONTEXT CREATE CONTROLFILE CREATE DATABASE ALTER DATABASE DELETE DESCRIBE CREATE DIMENSION ALTER DIMENSION DROP DIMENSION CREATE DIRECTORY DROP DIRECTORY EXEC EXECUTE IMMEDIATE EXPLAIN PLAN CREATE FUNCTION ALTER FUNCTION DROP FUNCTION GRANT CREATE INDEX ALTER INDEX DROP INDEX CREATE INDEXTYPE DROP INDEXTYPE INSERT INTERSECT CREATE JAVA ALTER JAVA DROP JAVA CREATE LIBRARY DROP LIBRARY CREATE DATABASE LINK DROP DATABASE LINK LOCK TABLE CREATE MATERIALIZED VIEW ALTER MATERIALIZED VIEW DROP MATERIALIZED VIEW CREATE MATERIALIZED VIEW LOG ALTER MATERIALIZED VIEW LOG DROP MATERIALIZED VIEW LOG MINUS NOAUDIT CREATE OUTLINE ALTER OUTLINE DROP OUTLINE CREATE PACKAGE/BODY ALTER PACKAGE DROP PACKAGE CREATE PFILE CREATE PROCEDURE ALTER PROCEDURE DROP PROCEDURE CREATE PROFILE ALTER PROFILE DROP PROFILE RECOVER RENAME ALTER RESOURCE COST REVOKE RMAN CREATE ROLE SET ROLE ALTER ROLE DROP ROLE ROLLBACK CREATE ROLLBACK SEGMENT ALTER ROLLBACK SEGMENT DROP ROLLBACK SEGMENT SAVEPOINT CREATE SCHEMA SELECT CREATE SEQUENCE ALTER SEQUENCE DROP SEQUENCE ALTER SESSION SHUTDOWN SNAPSHOT CREATE SPFILE STARTUP ASSOCIATE STATISTICS DISASSOCIATE STATISTICS CREATE SYNONYM DROP SYNONYM ALTER SYSTEM CREATE TABLE ALTER TABLE DROP TABLE CREATE TABLESPACE ALTER TABLESPACE DROP TABLESPACE CREATE TEMPORARY TABLESPACE SET TRANSACTION CREATE TRIGGER ALTER TRIGGER DROP TRIGGER TRUNCATE UPDATE UNION CREATE USER ALTER USER DROP USER CREATE VIEW ALTER VIEW DROP VIEW WHERE