Add Records
- Type/Copy the following statements on a notepad.
- Save the file with extension as sql; for example,
insert_fruit.sql
- Upload the file to server(outside of public_html folder)
- Log into your MySQL account and use command "source" to access the work; for example,
source insert_fruit.sql;
INSERT INTO fruit (name, color) VALUE ('banana', 'yellow');
INSERT INTO fruit (name, color) VALUE ('tangerine', 'orange');
INSERT INTO fruit (name, color) VALUE ('plum', 'purple');
SELECT * FROM fruit;