search
Homephp教程php手册PHP学习笔记:php二手交易市场系统

本示例的数据库脚本   执行语句:  source d:\test\2shou.sql;

 

CREATE DATABASE IF NOT EXISTS 2shou
COLLATE 'gb2312_chinese_ci';

USE 2shou;
CREATE TABLE IF NOT EXISTS Bulletin (
    Id INT  AUTO_INCREMENT  PRIMARY KEY,
    Title varchar(50), 
    Content varchar(1000),
    PostTime datetime,
    Poster  varchar(50)
);

CREATE TABLE IF NOT EXISTS  GoodsType (
    TypeId  INT  AUTO_INCREMENT  PRIMARY KEY,
    TypeName VARCHAR(100)  NOT NULL
);

CREATE TABLE IF NOT EXISTS Goods (
    GoodsId INT  AUTO_INCREMENT  PRIMARY KEY,
    TypeId INT, 
    SaleOrBuy TINYINT,
    GoodsName VARCHAR(50),
    GoodsDetail VARCHAR(1000),
    ImageURL VARCHAR(100),
    Price VARCHAR(50),
    StartTime  DATETIME,
    OldNew  VARCHAR(50),
    Invoice  VARCHAR(50),
    Repaired  VARCHAR(50),
    Carriage  VARCHAR(50),
    PayMode  VARCHAR(50),
    DeliverMode  VARCHAR(50),
    IsOver  TINYINT,
    OwnerId  VARCHAR(50),
    ClickTimes  INT
);

CREATE TABLE IF NOT EXISTS Users (
    UserId    VARCHAR(50),
    UserPwd    VARCHAR(50),
    Name    VARCHAR(50),
    Sex    TINYINT,
    Address    VARCHAR(500),
    Postcode    VARCHAR(50),
    Email    VARCHAR(50),
    Telephone    VARCHAR(100),
    Mobile    VARCHAR(50),
    UserType TINYINT
);
INSERT INTO Users VALUES('Admin', '111111', 'Admin', 1, '', '', '', '', '', 1);

 



Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool