比如第一条
select count(*) as yth from table t where t.userid = 3; 这条查询结果 1
第二条
select count(*) as yth from table t where t.userid = 1; 这条查询结果 100现在有几条这样的语句 我想建一个视图。
返回一条记录 分别是 1 100 。
联合的语句应该怎么写?
select count(*) as yth from table t where t.userid = 3; 这条查询结果 1
第二条
select count(*) as yth from table t where t.userid = 1; 这条查询结果 100现在有几条这样的语句 我想建一个视图。
返回一条记录 分别是 1 100 。
联合的语句应该怎么写?
from tb
from tb 这个方法好