Apache Ignite:我如何无法获取最后一行ID

问题描述 投票:0回答:1
COUNTRY_INSERT_QUERY = '''INSERT INTO Country( Code, Name ) VALUES ('123', 'INDIA')'''
client.sql(COUNTRY_INSERT_QUERY)

如何获得此插入值的行ID。就像何时使用游标在SQL中执行查询时,可以使用cursor.lastrowid

获取行ID
cursor.execute(query)
self.connection.commit()
last_inserted_id = cursor.lastrowid
sql python-3.x ignite
1个回答
0
投票

Apache Ignite没有“行ID”的概念。主键就是您所拥有的全部。

© www.soinside.com 2019 - 2024. All rights reserved.