2013-12-13 86 views
-2

在這裏,我正在編寫一個查詢以僅返回包含字母數字值的那些行。 請告訴我,如果您可以解決此ORA-00920:無效的關係運算符 什麼是原因錯誤ORA-00920:無效的關係運算符「錯誤

create table alpha_numeric(col1 varchar2(20)); 


insert into alpha_numeric values ('1000'); 
insert into alpha_numeric values ('a1093b'); 
insert into alpha_numeric values ('19b45'); 
insert into alpha_numeric values ('231'); 
insert into alpha_numeric values ('1000cc'); 
insert into alpha_numeric values ('a1000'); 
commit; 

select * from alpha_numeric 
where translate(col1,'1234567890',' '); 

回答

4

,你應該把此關係運算符(=,<,>等):

where translate(col1,'1234567890',' ') = ...; 
相關問題