Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1.

Slides:



Advertisements
Similar presentations
Murach’s ASP.NET 4/C#, C6© 2011, Mike Murach & Associates, Inc.Slide 1.
Advertisements

Murach’s C# 2010, C6 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s SQL Server 2008, C6© 2008, Mike Murach & Associates, Inc.Slide 1.
SQL for SQL Server, C6© 2002, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C3 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 4/C#, C3© 2011, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 2.0/C#, C3© 2006, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java Servlets/JSP (2 nd Ed.), C2© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C2© 2009, Mike Murach & Associates, Inc. Slide 1.
Murach’s ASP.NET 4/C#, C2© 2011, Mike Murach & Associates, Inc.Slide 1.
Murach's MySQL, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Murach's MySQL, C2© 2012, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C2© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s SQL Server 2008, C1© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C1© 2009, Mike Murach & Associates, Inc. Slide 1.
Murach’s C# 2010, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
© 2013, Mike Murach & Associates, Inc.
Murach’s Java SE 6, C2© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C1© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach’s SQL Server 2008, C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java Servlets/JSP (2 nd Ed.), C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach's C , C4 © 2009, Mike Murach & Associates, Inc. Slide 1 © 2009, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 3.5/C#, C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C6© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C5© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C7© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C7© 2007, Mike Murach & Associates, Inc.Slide 1.
© 2008, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2014, Mike Murach & Associates, Inc.
Workbench Data Definition Language (DDL)
© 2011, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2014, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
© 2014, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2007, Mike Murach & Associates, Inc.
Database SQL.
© 2010, Mike Murach & Associates, Inc.
© 2008, Mike Murach & Associates, Inc.
Presentation transcript:

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 2

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 3

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 4

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 5

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 6

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 7

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 8

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 9

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 10

Structured Query Language (SQL) A standard language that you can use to communicate with any modern DBMS. Has two parts: –Data Definition Language (DDL) which lets you define the tables in a database –Data Manipulation Language (DML) which lets you manipulate the data in the tables. Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc. Slide 11

SQL manipulation statements SELECT INSERT UPDATE DELETE Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc. Slide 12

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 13

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 14

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 15

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 16

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 17

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 18

Action Queries INSERT statement adds one or more records to a database DELETE statement deletes a single record or a group of records UPDATE statement allows a single record or a group of records to be modified Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc. Slide 19

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 20

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 21

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 22

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 23

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 24

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 25

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 26

How to connect to a database To connect to a database using JDBC, use the getConnection method of the DriverManager class. You must supply a URL for the database. In addition, you can supply a username and password. Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc. Slide 27

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 28

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 29

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 30

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 31

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 32

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 33

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 34

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 35

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 36

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 37

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 38

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 39

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 40

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 41

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 42

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 43

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 44

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 45

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 46

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 47

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 48

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 49

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 50

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 51

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 52

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 53

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 54

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 55

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 56

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 57

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 58

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 59

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 60

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 61

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 62

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 63

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 64

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 65

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 66

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 67