postgresql的rowid

As follows:

select (ctid::text::point)[1]::bigint AS row_number from user;

add another point:

The comparison expression for ctid is as follows:

select ctid, id, name from user;

delete from user where ctid='(0,1)';

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326068157&siteId=291194637