SQLmap automates the detection and exploitation of SQL injection. Once you have found or suspect an injectable parameter, SQLmap can confirm it, identify the database, enumerate its structure, and extract data, handling the fiddly details of different injection techniques and database systems for you. It is powerful, which is exactly why you should understand manual SQL injection first, so you can direct it and trust its results.
The workflow is straightforward: give SQLmap a request that includes the parameter to test, let it detect the injection, then progressively enumerate databases, tables, and columns before dumping the data you want. Against a lab you own, this shows how quickly an unparameterised query turns into full database disclosure.