⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vote.sql

📁 php开发实例完全剖析
💻 SQL
字号:
drop database if exists vote;
create database vote;
use vote;

CREATE TABLE  title  (                                                                                                                                                                                                                                                                 
           id  int(6) NOT NULL auto_increment,
	   username  varchar(20) NOT NULL,
	   email  varchar(50) NOT NULL,
           title  varchar(250) NOT NULL default '',                                                                                                                                                                                                                                            
           types  tinyint(2) NOT NULL default '1', 
	   choice text,
           times  datetime NOT NULL default '0000-00-00 00:00:00',                                                                                                                                                                                                                             
          primary KEY ( id )      
        );

CREATE TABLE  vote  (                                                                                                                                                                                                                                                 
           id  int(6) NOT NULL auto_increment,                                                                                                                                                                                                                          
           titleid  int(6) NOT NULL default '0',                                                                                                                                                                                                                            
           info  text NOT NULL,                                                                                                                                                                                                                                               
           vcount  int(4) NOT NULL default '0',                                                                                                                                                                                                                         
          primary KEY ( id )                                                                                                                                                                                                                                              
        );
create table email (
	   id int(6) not null,
	   email varchar(50) not null,
	   primary key ( id, email)
	);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -