Insert record into databse table with unique ID (OXID)

Hi guys,

If I have to insert a record into database table and I don’t have value for field oxid which is a primary key, If I leave it empty and will oxid generate value or I have to write any function that will generate unique ID?

oxutilsobject::generateUId()

It’s working.
Thank you!