Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何正确创建查询以从PostgreSQL数据库获取信息?_Postgresql - Fatal编程技术网

如何正确创建查询以从PostgreSQL数据库获取信息?

如何正确创建查询以从PostgreSQL数据库获取信息?,postgresql,Postgresql,怎么,一个请求, 要从PostgreSQL数据库中id=12和id=17的表“table”中获取两条记录,可以使用where in子句实现: where id in (12,17); 小提琴:

怎么,一个请求,
要从PostgreSQL数据库中id=12和id=17的表“table”中获取两条记录,可以使用where in子句实现:

where id in (12,17);
小提琴: