0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

rowidとは

Posted at

rowid

データベースのテーブル内の行(レコード)を一意に識別するために使用される値

→データベース管理システム(DBMS)によって提供される特殊なカラム
通常はテーブル内の各行に自動的に割り当てられる

行の物理的な格納場所を示すため、データベース内で迅速に行を検索するためのキーとして使用されることがある
rowidは数値やバイナリ形式の一意の識別子で表される

[注意点]
rowid は一意性を持つものの、データベース内の行の物理的な位置に依存するため、行が物理的に移動する場合やデータベースが再構築される場合には変化する可能性がある
→rowid を永続的に参照することは避けたほうがいい
そのかわりに主キーなどの安定した一意の識別子を使用してデータを参照する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?