Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
同じテーブルで2列の合計を行うにはどうすればよいですか?プラスを行うための正しいSQLは何ですか
例: 同じテーブルに2つの列があります:currentcharges&overduecharge ステートメントcurrentcharge+overduechargeを実行する必要があります。
select currentcharge + overduecharge as total_charge from the_table
エイリアス( "total_charge")はオプションですが、後で計算列を参照する必要がある場合に役立ちます。