Yes, there are many different ways of arranging for your data to be written to a database.
But none of those ways are going to care that you got that data from an Excel spreadsheet. In other words, the fact that your data came from Excel is irrelevant. Once you've got it out of Excel, just pick one of those ways and write the data to the database.
If you don't know any ways of writing to a database, let me recommend
the JDBC tutorial.