53 lines
1.1 KiB
SQL
53 lines
1.1 KiB
SQL
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
SET AUTOCOMMIT = 0;
|
|
START TRANSACTION;
|
|
SET time_zone = "+08:00";
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */
|
|
;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */
|
|
;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */
|
|
;
|
|
/*!40101 SET NAMES utf8mb4 */
|
|
;
|
|
--
|
|
-- 数据库: `nows`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
--
|
|
-- 表的结构 `soul`
|
|
--
|
|
|
|
CREATE TABLE `soul` (
|
|
`id` int(11) NOT NULL,
|
|
`title` varchar(300) NOT NULL,
|
|
`author` varchar(300),
|
|
`from` varchar(300)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
--
|
|
-- 转储表的索引
|
|
--
|
|
|
|
--
|
|
-- 表的索引 `soul`
|
|
--
|
|
ALTER TABLE `soul`
|
|
ADD PRIMARY KEY (`id`);
|
|
--
|
|
-- 在导出的表使用AUTO_INCREMENT
|
|
--
|
|
|
|
--
|
|
-- 使用表AUTO_INCREMENT `soul`
|
|
--
|
|
ALTER TABLE `soul`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
AUTO_INCREMENT = 1;
|
|
COMMIT;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */
|
|
;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */
|
|
;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */
|
|
; |