我使用identity列作为表中的主键。例如,在Oracle中,我使用:select <sequence_name>.nextval into <variable> from dual,并且我确信在执行sp时,没有人会插入任何具有相同ID的行。更新:问题是-在插入行之前,如何在SQL Server中使用ID (作为标识列)来完成任务,并确保它在存储过程结束时是唯一的。
更新:我有一个带有HierarchyId column.
我想我有内存问题,我想关闭我已经读过的文件使用pycapnp。怎么做才是最好的方法?正在做: # gets the file idx for the value we want file_name = self.list_files_current_split[file_idx] capnp_file =