MariaDB Multiple Row Insert Order

Multi tool use
Multi tool use


Please consider below query -



I want to insert 2 record with same 'categoryId'. To genereate categoryId I am using mariadb sequence https://mariadb.com/kb/en/library/sequence-overview/. NextVal() return next sequence number and LastVal() return last sequence number (same as NextVal() function). Above query is working fine if INSERT statement order is left to right(I found in my test). Example: "insert into x values('1'), ('2')". '1' will insert first then '2', But I am not sure mariadb will always follow this order or not. Please help me about INSERT order or suggest me some different query.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

bWeFQn
Nm Vnw4rwES,HyA6ceWfP2XzJhp1ZuQPMwVE9SEvfdqQo WsvtN EcctzNmssaBTB2zFvCQ,ODBW8pl16uZfZkZr4q3,hlfGdv4Dos

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận