Archive

Archive for August 2008

SQL - Lez. 1: Introduction and SQL statements

Requirements: No requirements

I decided to write this tutorial, divided into several classes, for the understanding of SQL, as by his instructions in a few steps we can issue commands that would otherwise need to perhaps tens of lines of code, not counting the number of variables use. Furthermore, the code we're going to write the script will be much more compact and readable by anyone. Continue reading ...

Tag: , Categories: SQL Tags: ,

SQL - Lez. 2: Data types and keywords

Requirements: no requirements

In this lecture we will present the SQL data types and provide a list of language keywords.

Data Types

There are three main types of data:

  • Numbers;
  • Characters;
  • Time;

The first category those represented by integers or floating point.
In the second category, we can enclose individual characters or strings.
In the latter case, enclose the dates, times and intervals.

Continue reading ...

Tag: , Categories: SQL Tags: ,

ASP - Creating a Guestbook for site

Requirements:

  • Server with IIS (Internet Information Services) or PWS (Personal Web Server), installed;
  • File creation. Mdb (Access format) to put messages created by the visitors;

We'd like visitors to your site will leave the greetings or comments on your work? Now you can with this tutorial.

First we create the file that will contain the guestbook.mdb Access database. We create a table named guestbook with the following fields:

  • ID: AutoNumber field, unique;
  • Name: Text field containing the visitor's name, 255 characters long;
  • Date: Date type field;
  • Time: Time type field;
  • Text: Memo field;
  • Email: field of type text, 50 characters long.

In this tutorial you will insert the code also for paging of results, that you will see a number of records at a time, but you can also skip if you do not want to use.

The first few lines of ASP code to insert in the view page of existing records, which I will call index.asp, are as follows:

Continue reading ...

Tag: , , Categories: ASP Tags: , ,