|
| 1 | +CREATE DATABASE test; |
| 2 | + |
| 3 | +use test; |
| 4 | +DROP TABLE IF EXISTS books; |
| 5 | +CREATE TABLE books |
| 6 | +(id VARCHAR(8), |
| 7 | +surname VARCHAR(24), |
| 8 | +first_name VARCHAR(24), |
| 9 | +title VARCHAR(96), |
| 10 | +price FLOAT, |
| 11 | +yr INT, |
| 12 | +description VARCHAR(100), |
| 13 | +inventory INT, |
| 14 | +primary key (id) |
| 15 | +); |
| 16 | + |
| 17 | + |
| 18 | +DELETE FROM books; |
| 19 | + |
| 20 | +INSERT INTO books VALUES('101', 'Jacobs', 'Sas', |
| 21 | + 'Beginning XML with DOM and Ajax', 49.99, 2006, |
| 22 | + 'Good introduction to XML and Ajax.', 30); |
| 23 | + |
| 24 | +INSERT INTO books VALUES('102', 'Liang', 'Daniel', |
| 25 | + 'Introduction to Java Programming, Comprehensive Version, 6th Ed', |
| 26 | + 59.99, 2007, 'Excellent hands-on introduction to Java.', 40); |
| 27 | + |
| 28 | +INSERT INTO books VALUES('103', 'Hughes', 'Merlin', |
| 29 | + 'Java Networking Programming', 49.99, 1999, |
| 30 | + 'Excelent introduction to Java networking.', 15); |
| 31 | + |
| 32 | +INSERT INTO books VALUES('104', 'Lethbridge', 'Timothy', |
| 33 | + 'Object-Oriented Software Engineering, 2nd Ed', 59.99, 2006, |
| 34 | + 'Excellent introduction to software engineering with hands-on approach.', 30); |
| 35 | + |
| 36 | +INSERT INTO books VALUES('105', 'McClure', 'Stuart', |
| 37 | + 'Web Hacking: Attacks and Defense', 29.99, 2003, |
| 38 | + 'Best introduction to Web security.', 30); |
| 39 | + |
| 40 | +INSERT INTO books VALUES('106', 'Mackey', 'David', |
| 41 | + 'Web Security for Network and System Administrators', 29.99, 2003, |
| 42 | + 'Practical introduction to system and network security, but not much on Web security.', 40); |
| 43 | + |
| 44 | +INSERT INTO books VALUES('107', 'Stallings', 'William', |
| 45 | + 'Network Security Essentials: Applications and Standards, 3rd Ed', 49.99, 2007, 'Excellent theorectical introduction to network security.', 30); |
| 46 | + |
| 47 | +INSERT INTO books VALUES('201', 'Bodoff', 'Stephanie', |
| 48 | + 'The J2EE Tutorial', 49.99, 2002, 'Good introduction to J2EE.', 20); |
| 49 | + |
| 50 | +INSERT INTO books VALUES('202', 'Barish', 'Greg', |
| 51 | + 'Building Scalable and High-Performance Java Web Applications Using J2EE Technology', |
| 52 | + 49.99, 2002, 'Simple introduction to J2EE.', 10); |
| 53 | + |
| 54 | +INSERT INTO books VALUES('203', 'Liang', 'Daniel', |
| 55 | + 'Tutorial for JBuilder', 15.00, 2003, 'Good introduction to JBuilder.', 15); |
| 56 | + |
| 57 | +INSERT INTO books VALUES('204', 'Sahu', 'Maneesh', |
| 58 | + 'Java Server Pages from Scratch', 39.99, 2001, 'Good introduction to JSP.', 12); |
| 59 | + |
| 60 | +INSERT INTO books VALUES('205', 'Roman', 'Ed', |
| 61 | + 'Mastering Enterprise JavaBeans and J2EE', 49.99, 2002, 'Good treatment of EJB.', 5); |
| 62 | + |
| 63 | +INSERT INTO books VALUES('206', 'Armstrong', 'Eric', |
| 64 | + 'The Java Web Services Tutorial', 49.99, 2002, 'Good introduction to Web services.', 30); |
| 65 | + |
| 66 | +INSERT INTO books VALUES('207', 'Deitel', 'H. M.', |
| 67 | + 'XML How to Program', 29.99, 2001, 'Good introduction to XML.', 8); |
| 68 | + |
| 69 | +INSERT INTO books VALUES('208', 'Weaver', 'James', |
| 70 | + 'Beginning J2EE 1.4', 49.99, 2003, 'Good introduction to J2EE 1.4.', 2); |
| 71 | + |
| 72 | +INSERT INTO books VALUES('209', 'Deitel', 'H. M.', |
| 73 | + 'Wireless Internet & Mobile Business: How to Program', 59.99, 2002, |
| 74 | + 'Good introduction to mobile computing.', 2); |
| 75 | + |
0 commit comments