Are there specific syntax differences between using JOIN in MySQLi and MSSQL in PHP?

When using JOIN in MySQLi and MSSQL in PHP, there are slight syntax differences in how the JOIN clause is written. In MySQLi, the JOIN clause is written as "INNER JOIN" or "LEFT JOIN", while in MSSQL, the JOIN clause is written as just "JOIN" or "LEFT JOIN". To ensure compatibility across both database systems, it's important to use the appropriate syntax when writing JOIN queries in PHP.

// MySQLi JOIN syntax
$query = "SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.id";

// MSSQL JOIN syntax
$query = "SELECT * FROM table1 JOIN table2 ON table1.id = table2.id";