我有一个名为categories的表,其中包含ID(long)、Name(varchar(50))、parentID(long)和shownByDefault(boolean)列。当我执行'select id,name from categories‘时,pg会返回所有的类别,按其id排序。然后我更新表的一些行(‘update categories set shownByDefault where parentId = 1'),update OK。然后,当我尝试执行第一个返回所有类别的
让我们想象一下,您有一个具有以下定义的表:( latitude numeric(18,12), updated_at timestamp without time zone在这样的表中有5万行。现在,出于测试目的,您将运行如下所示的更新:set updated_at = now()
where latitude betwee