我的数据库中有一列RAW类型.我怎样才能在where子句中使用它?
即只获取第三个字节等于4的值.
这不起作用:
SELECT v from T where v[3]=4
Run Code Online (Sandbox Code Playgroud)
Vin*_*rat 12
SQL> create table test (a raw(16));
Table created
SQL> insert into test values ('FF00FF00FF');
1 row inserted
SQL> select * from test where utl_raw.substr(a, 3, 1) = 'FF';
A
--------------------------------
FF00FF00FF
Run Code Online (Sandbox Code Playgroud)