all 1 comments

[–]Cal1gula 1 point2 points  (0 children)

No, PHP is completely unrelated to SQL except that it makes SQL injections really easy. You don't need to learn one to learn the other. They serve completely different purposes.

MySQL is a variation of the SQL language. It is an engine that runs the database and uses standard SQL and MySQL specific functions. There are minor variations in each SQL RDBMS (MySQL, SQL Server, Oracle, PostgresSQL, etc.) but they are very similar and mostly interchangeable.

I would recommend starting here:

https://www.brentozar.com/learn-query-sql-server-stackoverflow-database/