select * from tb1 a where =(select min(id2) from tb1 where id1=a.id1)其中的a该如何理解?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 08:13:07
select * from tb1 a where =(select min(id2) from tb1 where id1=a.id1)其中的a该如何理解?

select * from tb1 a where =(select min(id2) from tb1 where id1=a.id1)其中的a该如何理解?
select * from tb1 a where =(select min(id2) from tb1 where id1=a.id1)
其中的a该如何理解?

select * from tb1 a where =(select min(id2) from tb1 where id1=a.id1)其中的a该如何理解?
A 为TB1表或视图的别名,这里表示TB1,一般用来在表较多,表名较长,表名有重复时使用.
提取列名时,需加表名前缀时,如表有别名,用别名代替,如这里的A.ID1
select * from tb1 a where =(select min(id2) from tb1 where id1=a.id1)