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 中运行一个简单的查询,使用关键字LIKE在LONG字段中进行搜索。这是示例:
LIKE
LONG
SELECT SOMETHING FROM MYTABLE WHERE (LONGFIELD LIKE '%translate%' or LONGFIELD LIKE '%interpret%')
以下是错误:
inconsistent datatypes: expected NUMBER got LONG
我该如何解决这个问题?
根据这个问题(诚然这是旧的,但我认为仍然相关),您应该使用该CLOB类型。你不能做你想做的事LONG
CLOB