You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
webcrawler/sql/new.sql

36 lines
886 B

#
create table menu
(
id int auto_increment,#
href varchar(32) not null,#
menu_name varchar(10) not null,#
icon varchar(20) null,#
parent_id int not null,#id
menu_level int not null,#
sort int not null,#
constraint menu_href_uindex unique (href)
)
;
alter table menu add primary key(id);
#thrift服务器表
create table thrift
(
ip varchar(15),
port int not null,
timeout int default 3000
);
ALTER TABLE thrift ADD PRIMARY KEY (ip, port );
#
create table datasource
(
db_id varchar(32) not null,
hostname varchar(32) not null,
db_port int(5) not null,
username varchar(10) not null,
db_password varchar(10) not null,
db_name varchar(10) not null,
annotation varchar(32) not null,
db_desc varchar(20) null
)
;
ALTER TABLE datasource ADD PRIMARY KEY (db_id);