小编Naf*_*ine的帖子

为什么这个 PosgreSQL LIKE 查询不起作用?

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

5
推荐指数
1
解决办法
1689
查看次数

标签 统计

postgresql ×1