CIS 6930-01 – Fall 2000

11/22/2000


Click here to start


Table of Contents

CIS 6930-01 – Fall 2000

Introduction

SQL

Relations

General Relations

SQL Tables

Creating a Table

Column Types

SQL*Plus

Inserting a Row

The SELECT command

Displaying Chosen Columns

Displaying Chosen Rows

A Second Table

Selecting from Multiple Tables

Joins

References Between Tables

Primary Keys and Foreign Keys

Integrity Checks

Other Useful Commands

Conditions

JDBC

A Simple Example

Remarks

Running ShowStudents

Classes in the Example

The Driver Manager

Making a Connection

Database URLs

The Connection Interface

The Statement Interface

The ResultSet Interface

Example: Web Front End to SQL

A First Screen

Remarks

The SQLConnect servlet

Remarks

The SQLCommand servlet

Remarks

Printing the Forms

Handling Queries

Result Set Metadata

The SQLQuery servlet

Remarks

Generating the Response

Remarks

Action Statements

Submitting a Command

The Response

An Elementary “3-tier” Application

A Student Database

Creating the Table

Java “Script” to Create Table

Adding the Entries

Remarks

The Servlets

Selection Page

Overview of Select servlet

Initializing the Session

The DBSession class

Remarks

Generating the Response

Remarks

Viewing and Modifying Record

Overview of the View servlet

Remarks

Querying the Database

Generating the Response

Updating the Database

Overview of the Update Servlet

Extracting Session Data

Updating the Row

Building an “Undo” Command

Remarks

An Undo Button

Author: Bryan Carpenter

Email: dbc@csit.fsu.edu

Home Page: http://aspen.csit.fsu.edu/it1fall00