Source: Aesop
Desktop Center (I) creating databases
Author: elong
This is the first time that the younger brother writes Article . I don't know if it can be released .. I put Program It is intended for your reference. If any expert can develop a better program,
Please don't forget to speak with me.
On the demo page of the source program, go to elong.oso.com.cn/
Step 1: Create a database:
We will describe it in the OSO database column.
Log on to the database first. Click your database name on the left.
Enter the following command in the command field.
Create Table JPG (
Id int (8) Not null auto_increment,
URL char (255) not null,
Mess char (100) not null,
Fromx char (50) not null,
Url1 char (255) not null,
Mess1 char (100) not null,
Fromx1 char (50) not null,
Url2 char (255) not null,
Mess2 char (100) not null,
Fromx2 char (50) not null,
Url3 char (255) not null,
Mess3 char (100) not null,
Fromx3 char (50) not null,
Primary Key (ID)
);
Create Table jpg1 (
Id int (8) Not null auto_increment,
URL char (255) not null,
Mess char (100) not null,
Fromx char (50) not null,
Url1 char (255) not null,
Mess1 char (100) not null,
Fromx1 char (50) not null,
Url2 char (255) not null,
Mess2 char (100) not null,
Fromx2 char (50) not null,
Url3 char (255) not null,
Mess3 char (100) not null,
Fromx3 char (50) not null,
Primary Key (ID)
);
Create Table jpg2 (
Id int (8) Not null auto_increment,
URL char (255) not null,
Mess char (100) not null,
Fromx char (50) not null,
Url1 char (255) not null,
Mess1 char (100) not null,
Fromx1 char (50) not null,
Url2 char (255) not null,
Mess2 char (100) not null,
Fromx2 char (50) not null,
Url3 char (255) not null,
Mess3 char (100) not null,
Fromx3 char (50) not null,
Primary Key (ID)
);
Create Table jpg3 (
Id int (8) Not null auto_increment,
URL char (255) not null,
Mess char (100) not null,
Fromx char (50) not null,
Url1 char (255) not null,
Mess1 char (100) not null,
Fromx1 char (50) not null,
Url2 char (255) not null,
Mess2 char (100) not null,
Fromx2 char (50) not null,
Url3 char (255) not null,
Mess3 char (100) not null,
Fromx3 char (50) not null,
Primary Key (ID)
);
Create Table jpg4 (
Id int (8) Not null auto_increment,
URL char (255) not null,
Mess char (100) not null,
Fromx char (50) not null,
Url1 char (255) not null,
Mess1 char (100) not null,
Fromx1 char (50) not null,
Url2 char (255) not null,
Mess2 char (100) not null,
Fromx2 char (50) not null,
Url3 char (255) not null,
Mess3 char (100) not null,
Fromx3 char (50) not null,
Primary Key (ID)
);
These commands mean creating four tables to store data. This represents four types of images. If you want to add classes, you can add more tables and modify the source program.