CREATE DATABASE `manytomany`
CHARACTER SET 'utf8';
USE `manytomany`;
DROP TABLE IF EXISTS `student`;
create table student(
sid int auto_increment primary key,
name varchar(10) not null
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `teacher`;
create table teacher(
tid int auto_increment primary key,
name varchar(10) not null
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `st`;
create table st(
sid int not null,
tid int not null
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
2008-01-25hibernate-----many-to-manyJava代码CREATE DATABASE `manytomany` CHARACTER SET 'utf8'; USE `manytomany`; DROP TABLE IF EXISTS `student`; create table student( sid int auto_increment
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,Given 1->2->3->3->4->4->5,