L
L
lahomie932018-10-22 17:02:13
Android
lahomie93, 2018-10-22 17:02:13

Whether it is admissible to store id in the form of text in SQLite?

Hello! I have a question. In an android application, I interact with the ASP.NET backend and in JSON files I receive keys like "id": "854a8d07-5a37-4e1e-8547-40ce891b3663". Tell me, is it acceptable to store such keys as strings in the database, or is there any better way to store them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2018-10-23
@OnYourLips

varchar(36) not text
This is better than auto-incrementing numeric id's

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question