How to send data into database from worksheet table in LibreOffice Calc

Trying to create an app using Libre Office Calc for import data into SQL Database. I know how to do this in excel ,but I am completely beginner of Libre Office.

To conclude, I would like to execute simple IMPORT query to external database.
So, I will be very thankful if you show me an example code for creating a connections and import data .

Thanks in advance,

More information is needed. What database are you using? Are you trying to IMPORT data at DB or EXPORT data from Calc to DB table? Are you using Base at all?