DROP SCHEMA IF EXISTS world;
CREATE SCHEMA world;
USE world;
Pobrałem plik z przykładową bazą. Co prawda, strona https://dev.mysql.com/doc/index-other.html należy do MySQL, a ja plik wgrywam do MsSQL Server 2016. Proszę o pomoc. Dostaję takie błędy:
Msg 156, Level 15, State 1, Line 18
Incorrect syntax near the keyword 'IF'.
Msg 111, Level 15, State 1, Line 19
'CREATE SCHEMA' must be the first statement in a query batch.
Msg 911, Level 16, State 1, Line 20
Database 'world' does not exist. Make sure that the name is entered correctly.
Błędy te tyczą się tych trzech linijek. Co jest nie tak?
Dzięki
Michał