Académique Documents
Professionnel Documents
Culture Documents
UPDATE CUSTOMER
SET DUMMY_ID = 3,DUMMY = 4
WHERE DUMMY = 5;
8. Listing information
SELECT C_ID,C_NAME,C_DATA,A_ID,A_NAME,A_DATA
FROM CUSTOMER, AGENT
WHERE CUSTOMER.C_ID = AGENT.A_ID;
12. SELECT INTO FROM – copy data from 1 table to new table (the new table will be created after the command is run)
13. INSERT INTO SELECT FROM – copy data from 1 or more table to existing table
14. Entity Integrity – every primary keys are unique, not null
(make the foreign key to be properly reference to other table)
15. Referential integrity – every foreign key can be null, but non-null value must be reference to valid primary key
(prevent invalid entry for foreign key, make the parent table impossible to delete the row as long as the row is
referenced by other table)