1
create database bbs;
2
3
use bbs;
4
5
create table article
6
(
7
id int primary key auto_increment,
8
pid int,
9
rootid int,
10
title varchar(255),
11
cont text,
12
pdate datetime,
13
isleaf int
14
);
15
16
insert into article values (null, 0, 1, 'title', 'context', now(), 1);
这里注意datetime在insert中用到now(),记住了
posted on 2010-07-15 23:51
hypon 阅读(206)
评论(0) 编辑 收藏 所属分类:
DBMS