看看以下三种写法: 写法1:SELECT ... FROM A WHERE A.key NOT IN (SELECT key FROM B); 写法2:SELECT ... FROM A LEFT JOIN B ON A.key = B.key WHERE B.key is null; 写法3:SELECT ... FROM A WHER
CREATE DEFINER=`root`@`localhost` TRIGGER `after_insert` AFTER INSERT ON `student` FOR EACH ROW begin -- 触发器内容开始-- 触发器内容主体,每行用分号结尾update course set grade = grade+1 where new.classid=course.id;end