要查询Oracle数据库中sequence的最大值,可以使用以下SQL语句:
SELECT MAX_VALUE
FROM ALL_SEQUENCES
WHERE SEQUENCE_OWNER = 'your_sequence_owner'
AND SEQUENCE_NAME = 'your_sequence_name';
请将your_sequence_owner
替换为你的sequence所有者,your_sequence_name
替换为你的sequence名称。这条SQL语句将返回指定sequence的最大值。