解决方案 »
- 【求助】数据库数据取出出现乱码
- MySql+C#可以使用?号当参数吗
- 用test1用户建了一个表A,再用test2用户去写表A,提示没有权限,问。。
- grant语句老是出错,各位帮帮忙了
- 奇怪的问题-你的mysql now()等于from_unixtime(unix_timestamp(now()), '%Y-%m-%d %H:%m:%s')吗?
- 怎么判断一个表中信息是否准确
- 请问多表统计怎么弄啊?
- 难道这是MYSQL的BUG吗?谁能解决给100分,立刻!
- 急急急,请问我在linux下模块化安装mysql,可是怎么也找不到my.cnf。。。。。
- 关于mysql5.6以上版本时间data类型插入出错解决方案
- 商品ID如何设计才能方便的扩展,比如从1亿的数据到10亿的数据
- 我导出的sql文件问什么突然增大了
from tb A
where not exists(select 1 from tb B where A.type=B.type and A.age=B.age and A.id<B.id)
select id , name ,type , age from (
select
id , name ,type , age ,
row_number() over (partition by name , type order by id) as rn
from mytable ) x
where rn = 1