Download presentation
Presentation is loading. Please wait.
Published byTristin Bowhay Modified over 9 years ago
1
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1
2
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 2
3
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 3
4
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 4
5
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 5
6
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 6
7
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 7
8
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 8
9
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 9
10
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 10
11
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
12
SQL manipulation statements SELECT INSERT UPDATE DELETE Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc. Slide 12
13
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 13
14
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 14
15
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 15
16
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 16
17
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 17
18
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 18
19
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
20
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 20
21
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 21
22
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 22
23
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 23
24
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 24
25
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 25
26
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 26
27
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
28
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 28
29
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 29
30
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 30
31
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 31
32
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 32
33
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 33
34
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 34
35
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 35
36
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 36
37
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 37
38
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 38
39
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 39
40
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 40
41
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 41
42
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 42
43
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 43
44
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 44
45
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 45
46
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 46
47
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 47
48
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 48
49
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 49
50
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 50
51
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 51
52
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 52
53
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 53
54
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 54
55
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 55
56
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 56
57
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 57
58
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 58
59
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 59
60
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 60
61
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 61
62
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 62
63
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 63
64
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 64
65
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 65
66
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 66
67
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 67
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.