sql中加法怎么用?
比如 两个表都用count()返回了数据条数,我想让两个结果想加,sql怎么写呢?
——解决方案——————–
select (select count(*) from T1) + (select count(*) from T2)
sql中加法怎么用?
比如 两个表都用count()返回了数据条数,我想让两个结果想加,sql怎么写呢?
——解决方案——————–
select (select count(*) from T1) + (select count(*) from T2)