exec($query); ?>
exec($query); ?>In both examples, the ‘PDO’ package library is used to create and execute SQL queries. The addTable function is used to create a new table with table name, column names and data types. The executed query creates a table in the database with these specifications.