SQL error “ORA-01722: invalid number”

前端 未结 13 1782
野趣味
野趣味 2020-11-29 10:15

A very easy one for someone, The following insert is giving me the

ORA-01722: invalid number

why?

INSERT INTO C         


        
13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 10:24

    Well it also can be :

    SELECT t.col1, t.col2, ('test' + t.col3) as test_col3 
    FROM table t;
    

    where for concatenation in oracle is used the operator || not +.

    In this case you get : ORA-01722: invalid number ...

提交回复
热议问题