SQL is used to communicate with a database. It’s a standard programming language for relational database management systems, according to American National Standards Institute (ANSI). SQL statements are used for tasks like updating, reading, or writing data to a database.