X
X
xxxfdd2022-01-19 19:04:13
Database design
xxxfdd, 2022-01-19 19:04:13

How to make tables correctly?

I make a bot to search for friends, How I work with databases. ->.1) Firstly, I have a table with all the people who can be searched 2) Secondly, as a new user clicks in the bot, clicks /start in the Telegram bot I create a table and call it his id in the telegram 3) And then in I write down his preferences in the table 4) then I just compare and if there are similarities, I display the candidates.

Help simplify my algorithm for working with the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-01-19
@bacon

new user clicks in bot clicks /start in Telegram bot I create a table and call it his id in telegram
it says that you understand nothing in the theory of relational databases. Start by learning the basics. By the way, you were told about this in the comments a long time ago https://qna.habr.com/q/1090194
PS and yes, questions should be asked with code examples so that we don’t guess what you are doing there. Well and just in case correctly is to create one table under users.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question