-4

以下のクエリを実行すると、エラーが発生します。

insert into me.attr ( EXPS)
 values( select EXPS from mine.attr 
          where fiscal_year=2012 
          and accounting_period=11 
          and gaap_cd='ZA' );


 Error: insert into me.attr ( EXPS) values ( select EXPS from mine.attr
 where fiscal_year=2012 and accounting_period=11 and gaap_cd='ZA' )
 Error at Command Line:31 Column:2 
 Error report:
 SQL Error: ORA-00936: missing expression
 00936. 00000 -  "missing expression"
 *Cause:    
 *Action:

誰かがこの問題について私を助けてくれますか。

4

1 に答える 1

3

select内で使用しているときはinsert、句を使用しませんvalues: これを試してください:

insert into 
  me.attr ( EXPS) 
  select EXPS 
    from mine.attr 
    where fiscal_year=2012 and 
          accounting_period=11 and 
          gaap_cd='ZA' 
于 2013-03-29T15:28:07.837 に答える