SQL injection targets relational databases by injecting malicious SQL queries. NoSQL injection exploits non-relational databases by manipulating query parameters. While both aim to access or manipulate unauthorized data, they use different techniques based on the type of database.