Я не знаю, в чем здесь проблема, но я не могу удалить, используя этот код, он показывает ошибку в вашем синтаксисе sql. Проверьте руководство, соответствующее вашей версии сервера MariaDB, чтобы найти правильный синтаксис для использования рядом с '* Fromзаемщики, где id = 17 'в строке 1
Try
QueryConnect = "DELETE * From borrowers Where ID=@BID"
CommandConnect = New MySqlCommand(QueryConnect, DataConnection)
CommandConnect.Parameters.Add("@BID", MySqlDbType.Int16).Value = BIDLabel.Text
MyDataConnect = CommandConnect.ExecuteReader
MessageBox.Show("Borrower Deleted Successfully", LoginUI.BrandMsgBox, MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
MyDataConnect.Close()
'Refresh Borrowers List
'GetBorrowersList()
Catch ex As MySqlException
MsgBox(ex.Message, CType(MessageBoxIcon.Error, MsgBoxStyle), LoginUI.BrandMsgBox)
DataConnection.Close()
End Try