开发者

Not able to left join two tables using a non numeric column? ora-01722

开发者 https://www.devze.com 2023-03-04 20:29 出处:网络
I would like to check, is it possible to left join two tables using a non numeric column? i.e. where descriptions_cd is a varchar(10) and table_cd is a varchar(10):

I would like to check, is it possible to left join two tables using a non numeric column?

i.e. where descriptions_cd is a varchar(10) and table_cd is a varchar(10):

   SELECT * 
     FROM descriptions d 
LEFT JOIN tables t ON t.table_cd = d.descriptions_cd;

This SQL seems to be giving an ora-01722 error. Th开发者_运维知识库is is in Oracle 9i.


Can you check values of one of these column contain only numeric data (even if the volumn type is varchar) ?


ok, table_cd is not numeric. that explains.

0

精彩评论

暂无评论...
验证码 换一张
取 消