X
Xata7mo ago
agaitan026

hi one question, the xata_id its always

hi one question, the xata_id its always a string? it could not be like 1 2 3 4 5 6 ?
4 Replies
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
agaitan026
agaitan026OP7mo ago
but that is not automatically? i mean i can do something to make it 1 2 3 4 5 6 etcc? or its best to leave it default like a identity like in sql etc
kostas
kostas7mo ago
The xata_id is a unique not null random string. If you need an incremental field, you can add a serial one and make it a primary key as well, such as:
alter table tablename add column my_id serial primary key;
alter table tablename add column my_id serial primary key;
agaitan026
agaitan026OP7mo ago
i see, i better leave xata_id thank you
Want results from more Discord servers?
Add your server