1.计算相邻两行的年龄的差距 表中的数据如下 select (s.age-(select age from stu where id - s.id = 1)) from stu as s; select a.age-b.age from stu a,stu b where a.id-b.id=1; select a.age-b.age from stu a inner join stu b on a.id = b.id + 1; 2.找出0-200之间的数据的id数值中带有7的数据 (selec…
--mysql阅读收录 -----------------2014/07/02 # 复制相关: 1. 解释基于语句的复制中怎样处理functions,triggers,events和auto_increment键 Statement based replication with Stored Functions, Triggers and Events…