SELECT oid,* FROM table; # if you already know your oid.. SELECT * FROM table WHERE oid = x;