[태그:] ROLLBACK
-
[기술 면접] 4. 트랜잭션(Transaction)을 설명해주세요.
지난 시간에 이어서, 이번엔 트랜잭션(Transaction)에 대해 알아보겠습니다. Transaction은 Database의 작업 단위로, 기초이면서도 필수인 개념이라고 할 수 있습니다. Transaction의 특징과 관련 개념, 그리고 제어 방법들에 대해 알아보는 시간을 갖겠습니다. Q: 트랜잭션(Transaction)을 설명해주세요. DB 내에서 수행되는 작업의 최소 단위로, DB의 무결성을 유지하며 DB의 상태를 변화시키는 기능을 수행합니다. 하나 이상의 Query를 포함해야 하고, ACID라고 칭해지는 원자성, 일관성, 고립성,…
-
[Coding Test] 1. Binary Gap
1. Binary Gap 문제 A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has binary representation 1000010001 and contains two binary gaps:…