PostgreSQL 9.2。
[local] postgres@host=# select * from units where ip_address LIKE '192.168.43.%';
ERROR: 42883: operator does not exist: inet ~~ unknown
LINE 1: select * from units where ip_address LIKE '192.168.43.%';
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
LOCATION: op_error, parse_oper.c:722
Time: 0.309 ms
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
postgresql ×1