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.
私はOracleを初めて使用し、クエリに問題があるようです
これが私が持っているものです
SELECT (REPLACE(column1, 'test', '') + ': ' + column2) AS column3 FROM table
これでORA-01722 invalid numberエラーが発生します。
ORA-01722 invalid number
と関係があると思い+ますが、正しい構文がわかりません。
+
何か案は?
|| を使用する必要があります。2 つの文字列を連結するには...
SELECT (REPLACE(column1, 'test', '') || ': ' || column2) AS column3 FROM table
またはCONCAT関数を使用して
(二重管の方が使いやすいので誰も使っていないので、ここで完成させようとしています)
よろしく、 ロブ。
Oracleで連結する正しい方法は、使用することです||
||
select 'a' || 'b' from dual;