Answer the question
In order to leave comments, you need to log in
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
new user clicks in bot clicks /start in Telegram bot I create a table and call it his id in telegramit 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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question