cs453: databases and state in web applications (part 2) prof. tom horton
TRANSCRIPT
![Page 1: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/1.jpg)
CS453: Databases and State CS453: Databases and State in Web Applications (Part 2)in Web Applications (Part 2)
Prof. Tom HortonProf. Tom Horton
![Page 2: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/2.jpg)
Readings
• Textbook:– Chapter 17, Transactions
• On the web:– Virtual labs on MySQL– Other tutorials
• Quick intro: two chapters in Just Java• On-line book:
– PHP and MySQL Web Development. 3/e– http://proquest.safaribooksonline.com/0672326728
![Page 3: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/3.jpg)
DBMS and Web Apps
• Server-side applications use a database instead of flat files
• What are the advantages of this?
![Page 4: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/4.jpg)
Advantages of DBs
• Concurrent access
• Transactional integrity
• Backup, rollback,…
• Efficient storage of large amounts of data
![Page 5: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/5.jpg)
Relational Database Model
• Leading model of how to organize a DB• Tables• Rows and columns• Keys
• Multiple tables, with rows linked together by keys (“joins”)
• Tables as relationships
![Page 6: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/6.jpg)
SQL: Structured Query Language
• Common query language for accessing many RDBMS– Oracle, Postgres, MySQL, Sybase,
SQL Server– Slight variations between implementations
• Common commands:– SELECT for retrieving data– INSERT, UPDATE– ALTER
![Page 7: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/7.jpg)
Learn More…
• Virtual labs, tutorials, etc.
• Suggestions from CS462 veterans?
![Page 8: CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton](https://reader036.vdocuments.us/reader036/viewer/2022083008/56649f565503460f94c79860/html5/thumbnails/8.jpg)
Example