:::

1-2 sql/mysql.sql

CREATE TABLE `snews` (
  `sn` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '流水號',
  `focus` tinyint(2) unsigned NOT NULL COMMENT '精選',
  `topic_sn` tinyint(2) unsigned NOT NULL COMMENT '類別編號',
  `sort` tinyint(5) unsigned NOT NULL COMMENT '排序',
  `title` varchar(300) NOT NULL,
  `content` text NOT NULL,
  `username` varchar(65) NOT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `uid` mediumint(8) unsigned NOT NULL COMMENT '使用者編號',
  PRIMARY KEY (`sn`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `snews_topic` (
  `topic_sn` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '類別編號',
  `topic_title` varchar(255) NOT NULL COMMENT '類別或主題名稱',
  `topic_type` varchar(10) NOT NULL COMMENT '種類',
  `topic_description` text NOT NULL COMMENT '說明',
  `topic_status` enum('投稿中','當期','有效','已關閉') NOT NULL COMMENT '主題狀態',
  `username` varchar(65) NOT NULL COMMENT '建立者',
  `uid` mediumint(8) unsigned NOT NULL COMMENT '使用者編號',
  PRIMARY KEY (`topic_sn`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fmail.tad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1424%26tbsn%3D44

書籍目錄

展開 | 闔起

線上使用者

361人線上 (150人在瀏覽線上書籍)

會員: 0

訪客: 361

更多…