sql >> データベース >  >> RDS >> Oracle

JavaのOracleSqlステートメント

    注:この回答は元の質問に適用されました。

    注釈付きのSQLステートメント:

    select a.name           -- 'a' is undefined
         , ird_num          -- note: always qualify (helps others read it)
         , loan_num         --   same
         , contract_date    --   same
      from a2_loan          -- is this support to have alias 'a'?
         , customer b       -- not table `a2_customer`
         , customer c       -- not table `a2_customer`
     where aname=b.ird_num  -- missing period(?), and 'a' is undefined
       and b name=c.name    -- missing period
    



    1. 共通の属性を持つ連続したレコードのグループを選択しますか?

    2. SQLによる単一レコードの変更に基づいて複数のレコードに変更を加える

    3. 他のテーブルへの外部キーを含むテーブルの行を削除する方法

    4. mysqlでUPDATE/DELETEを実行し、影響を受ける行IDのリストを取得しますか?