2016-04-28 9 views
0

のinsertクエリで新しい行を挿入する方法dbの2行の間に新しい行を挿入したい "アスペルガー症候群は社会的相互作用とコミュニケーションに問題があります。私は、このように挿入しようとしましたが、SQLがエラーoracle 11g sql

Error report -

SQL Error: ORA-00936: missing expression 00936. 00000 - "missing expression"
*Cause:

答えて

1

を示しOracleで文字列の連結のためのオペレータが||と関数名である私のO/Pはこの

'Asperger's syndrome have difficulty with social interaction and communication.
They also have a narrow range of interests.'

insert into ab(column) values ('a'+char(10)+'b'); 

のようになりたいですCHARの代わりにCHRです。

insert into ab(column) values ('a' || chr(10) || 'b'); 
0
insert into ab 
    (col1) 
values 
    (q'[Asperger's syndrome have difficulty with social interaction and communication.]' || 
    chr(13) || 'They also have a narrow range of interests.') 

あなたの条件のために上記のコードを使用してください。