Hello, I'm doing a facebook clone database. I have two tables, one of users and another friendship. The friendships table is a self-relationship of users as shown in the picture.
This Friendship table contains the IDs of each user and n...
How can I increment an array within a structure?
My structure is this:
struct list {
char name[50];
int products_list[]; } LIST[10];
I wanted to know the current number of elements in the array (list_products) to add more products with t...
I have three tables: preco , estabelecimento and precoXestabelecimento . The id of price is autoincrement and there is a N: N relationship between the first two tables, which is represented by the third precoX...
Hey guys, I created an ID table with Auto Increment, checking the table I saw that Bugou, has any command in SQL that reorders from the value 1,2,3,4 to the last one? just for the sake of reorganization.
Thank you.
Good night guys, this is the following, I have an application that was working until these days, today when I was adding a post in the database, my id_post that is Primary Key and Auto_increment is not being added, it returns the error that it m...