1
I want to insert data into a table in the database, but there are no mandatory fields, how should I proceed with this, because I can’t perform the command this way for example:
            MySqlCommand command = new MySqlCommand("INSERT INTO item VALUES( " +
                    "@id_item, " +
                    "@nome, " +
                    "@descricao, " +
                    "@imagem, " +
                    "@categoria); ",conexao)
For example the field descricaoit is not mandatory, if it is empty I can not send the data to the bank, how could solve this?
Thank you so much for helping me!
– Joaovictorz4