日期:2014-05-18 浏览次数:20654 次
SELECT price , CASE WHEN EXISTS ( SELECT 1 FROM table1 WHERE Identify = 152 ) THEN ( SELECT COUNT(*) FROM table1 WHERE aa = 'sss' ) ELSE ( SELECT COUNT(*) FROM table1 WHERE bb = 'sss' ) END FROM table2