-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfileOutput3.txt
52 lines (52 loc) · 2.74 KB
/
fileOutput3.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
> CREATE C:\cpp_assignment\fileOutput3.txt;
> DATABASES;
C:\cpp_assignment\fileInput3.mdb
> CREATE TABLE
(
customer_id INT
customer_name TEXT
customer_city TEXT
customer_state TEXT
customer_country TEXT
customer_phone TEXT
customer_email TEXT
);
> INSERT INTO
customer (customer_id, customer_name, customer_city, customer_state, customer_country, customer_phone, customer_email)
VALUES (1 'oyen' 'meowcity' 'Texas' 'USA' '019877313' '[email protected]' )
> INSERT INTO
customer (customer_id, customer_name, customer_city, customer_state, customer_country, customer_phone, customer_email)
VALUES (2 'sarah' 'kuantan' 'Pahang' 'Malaysia' '3434532' '[email protected]' )
> INSERT INTO
customer (customer_id, customer_name, customer_city, customer_state, customer_country, customer_phone, customer_email)
VALUES (3 'Rosie' 'Vienna' 'ViennaState' 'Austria' '0928833' 'email3' )
> INSERT INTO
customer (customer_id, customer_name, customer_city, customer_state, customer_country, customer_phone, customer_email)
VALUES (4 'Billy' 'Sofia' 'RepublicOfBulgaria' 'Bulgaria' '00009323' 'billygoat@yahoo' )
> INSERT INTO
customer (customer_id, customer_name, customer_city, customer_state, customer_country, customer_phone, customer_email)
VALUES (5 'Robbie' 'Hondacity' 'Honda' 'Japan' '00009323' 'robbiedobi@yahoo' )
> SELECT * FROM customer;
customer_id,customer_name,customer_city,customer_state,customer_country,customer_phone,customer_email
1,'oyen','meowcity','Texas','USA','019877313','[email protected]'
2,'sarah','kuantan','Pahang','Malaysia','3434532','[email protected]'
3,'Rosie','Vienna','ViennaState','Austria','0928833','email3'
4,'Billy','Sofia','RepublicOfBulgaria','Bulgaria','00009323','billygoat@yahoo'
5,'Robbie','Hondacity','Honda','Japan','00009323','robbiedobi@yahoo'
> UPDATE customer_id SET customer_name = email678 WHERE customer_id = 1;
> SELECT * FROM customer;
customer_id,customer_name,customer_city,customer_state,customer_country,customer_phone,customer_email
1,email678,'meowcity','Texas','USA','019877313','[email protected]'
2,'sarah','kuantan','Pahang','Malaysia','3434532','[email protected]'
3,'Rosie','Vienna','ViennaState','Austria','0928833','email3'
4,'Billy','Sofia','RepublicOfBulgaria','Bulgaria','00009323','billygoat@yahoo'
5,'Robbie','Hondacity','Honda','Japan','00009323','robbiedobi@yahoo'
> DELETE FROM customer WHERE customer id= 2
> SELECT * FROM customer;
customer_id,customer_name,customer_city,customer_state,customer_country,customer_phone,customer_email
1,email678,'meowcity','Texas','USA','019877313','[email protected]'
3,'Rosie','Vienna','ViennaState','Austria','0928833','email3'
4,'Billy','Sofia','RepublicOfBulgaria','Bulgaria','00009323','billygoat@yahoo'
5,'Robbie','Hondacity','Honda','Japan','00009323','robbiedobi@yahoo'
> SELECT COUNT (*) FROM customer;
4