7 Structured Query Language
7 Structured Query Language
Command Description
INSERT Creates a record
DELETE Deletes records
UPDATE Modifies records
USE testDB;
WHERE CustomerName LIKE '_r Finds any values that have "r" in
%' the second position
The selection from the "Customers" table will now look like this:
After
After
Deleted
update
2 rows
SQLALTER
DROP INDEX
TABLE Statement:
table_name
DROP INDEX index_name;
a
b
SELECT OID, NAME, AGE, AMOUNT FROM CUSTOMERS, ORDERS WHERE CUSTOMERS.ID = ORDERS.CUSTOMER_ID;
Example
SELECT ID, NAME, AMOUNT, DATE FROM CUSTOMERS FULL JOIN ORDERS ON CUSTOMERS.ID = ORDERS.CUSTOMER_ID;
This would produce the following result:
Now, CUSTOMERS table is truncated and following would be the output from SELECT
statement:
SELECT * FROM CUSTOMERS;
Empty set (0.00 sec)
05/26/2025 Fundamentals of Database Systems 67
For More Information
tutorialspoint.com