开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜