mysql 两个查询结果 并 运算

来源:互联网 发布:苹果cms定时规则 编辑:程序博客网 时间:2024/05/21 04:44

mysql 两个查询结果 并 运算

select column1 as one from a where id=1;
select column2 as two from b where id=1;

求 one two 运算

加法
select ( (select column1 as one from a where id=1)+(select column2 as two from b where id=1) );

0 0