摘要: ●Oracleとの接続テスト"; echo ""; for ( $i = 1; $i " . $column_name . ""; } echo ""; // データのFetch while(OCIFetch($stmt)) { echo ""; for ( $i = 1; $i " . OCIResult($stmt, $column_name) . ""; } echo ""; } echo ""; // リソースの解放 阅读全文
posted @ 2013-08-23 12:10 sekihin 阅读(481) 评论(0) 推荐(0)
摘要: 按行显示的合计select game, sum(purchase) as purchase_sum from purchase group by game;按列显示的合计select sum(case when game = 'action' then purchase else 0 end) as sum_action, sum(case when game = 'puzzle' then purchase else 0 end) as sum_puzzle, sum(case when gam... 阅读全文
posted @ 2013-08-23 09:54 sekihin 阅读(724) 评论(0) 推荐(0)