Sequences

You are viewing an old version of this category. View the current version here.
MariaDB starting with 10.3

CREATE SEQUENCE 는MariaDB 10.3 부터 도입되었습니다

시퀀스란, CREATE SEQUENCE문에서 지정된 대로 일련의 숫자값을 생성해주는 객체입니다. 시퀀스는 일련번호가 생성되는 방식을 원하는대로 제어하고 싶을 경우에 AUTO_INCREMENT 를 대신해 사용할 수 있습니다.

SEQUENCE는 값을 캐싱하기 때문에 때때로 더 빠릅니다. 또한 사용된 모든 시퀀스에서 생성한 마지막 값에 대해 접근할 수 있습니다. LAST_INSERT_ID( )와 같은 제약이 적용되지 않습니다

이 섹션은 시퀀스 객체에 관한 것입니다. 스토리지 엔진에 대한 자세한 내용은Sequence Storage Engine을 참조하십시오.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.