Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle: is ROWID a NUMBER or a VARCHAR?

In Oracle, is ROWID a NUMBER or a VARCHAR?

Can any one help me out?

like image 664
Venkat Avatar asked Oct 17 '25 03:10

Venkat


2 Answers

Neither. ROWID is a ROWID:

  • http://www.orafaq.com/wiki/ROWID
like image 124
Álvaro González Avatar answered Oct 18 '25 16:10

Álvaro González


Technically, ROWID has its own datatype (also called ROWID or UROWID for IOTs). If you absolutely must use either NUMBER or VARCHAR datatypes, it will have to be a VARCHAR as the ROWIDs will contain more than just numbers.

like image 24
Craig Avatar answered Oct 18 '25 18:10

Craig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!