2016-05-18 4 views
0
table test1 
number color brand size tiresize 
----------------------------------------- 
1   blue d  5  6 
3   red b  3  3 
4   red b  3  3 

table test2 
number color brand size tiresize 
----------------------------------------- 
1   blue d  5  6 
2   blue d  5  6 
3   red b  3  3 


select count(*) 
from test1 

select count(*) 
from test2 

私は表示データではなく、列は

が、それは可能です、私は行ではなく列に結果を持っていると思い

以下の結果を取得しますそれをするために?

+0

質問はupvoteループのように見えます。強力なユーザーに注意を払うのは簡単すぎる。 –

答えて

1

これを試してみてください:

select (select count(*) from test1) as cnt1, 
     (select count(*) from test2) as cnt2 
関連する問題