



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




else if (args[0].equalsIgnoreCase("mysqlclient")) { framework = "mysqlclient"; driver = "com.mysql.jdbc.Driver"; protocol = "jdbc:mysql://database2.cs.tamu.edu:3306/"; }
props.put("user", "ward"); props.put("password", pswd);
yourname-mysqlDB on your MySQL account and donât tryString dbName = "ward-mysqlDB"; // the name of the database
SimpleMySQL starting in mysqlclient mode Loaded the appropriate driver Password: xxxxxxxx Connected to and using database ward-mysqlDB Created table location Inserted 1956 Webster Inserted 1910 Union Updated 1956 Webster to 180 Grand
Updated 180 Grand to 300 Lakeshore Verified the rows Dropped table location Committed the transaction SimpleMySQL finished
yourname-newProductsward-newProducts;Exercise8_5_1 starting in mysqlclient mode Loaded the appropriate driver Password: xxxxxxxx Connected to and using database ward-newProducts Dropped table Product Created table Product
Exercise8_5_1 starting in derbyembedded mode Loaded the appropriate driver Password: spot Connected to and using database ward-newProducts Created table Product 30 Product records inserted. Created table PC 13 PC records inserted. Starting Part a) of Exercise 8.5. Price? 1500 maker = B model = 1005 speed = 1000 price = 1499 Completed Part a) Starting Part c) of Exercise 8.5.1, pg. 364 Created table Laptop 10 Laptop records inserted. Created table Printer 7 Printer records inserted. Maker? D TYPE MODEL SPEED RAM HD RD PRICE pc 1009 1200 128 80 16xDVD 1699 pc 1010 750 64 30 40xCD 699 pc 1011 1100 128 60 16xDVD 1299 TYPE MODEL SPEED RAM HD SCREEN PRICE laptop 2007 850 128 20 15.0 3099 Completed Part c) Starting Part e) of Exercise 8.5.1, pg. 364
Enter PC data on one line. Separate values using a space. Please order the data as follows: maker model speed ram hd rd price A 1116 1250 512 80 24xDVD 1199 Successfully inserted new PC into Product and PC tables Completed Part e) Starting Part f) of Exercise 8.5.1, pg. 364 New PC table with modified prices MODEL SPEED RAM HD RD PRICE 1001 700 64 10 48xCD 699 1002 1500 128 60 12xDVD 2399 1003 866 128 20 8xDVD 1899 1004 866 64 10 12xDVD 899 1005 1000 128 20 12xDVD 1399 1006 1300 256 40 16xDVD 2019 1007 1400 128 80 12xDVD 2199 1008 700 64 30 24xCD 899 1009 1200 128 80 16xDVD 1599 1010 750 64 30 40xCD 599 1011 1100 128 60 16xDVD 1199 1012 350 64 7 48xCD 699 1013 733 256 60 12xDVD 2399 1116 1250 512 80 24xDVD 1199 Completed Part f) Committed the transaction Dropped table Printer Dropped table Laptop Dropped table Product Dropped table PC Derby shut down normally Exercise8_5_1 finished