Sql MariaDB语法错误1064,请检查与MariaDB服务器版本对应的手册

Sql MariaDB语法错误1064,请检查与MariaDB服务器版本对应的手册,sql,mariadb,Sql,Mariadb,我正在尝试操作此处找到的现有数据库 但出于某种原因,MariaDB不喜欢这种语法,尽管根据文档,它似乎是正确的 Error SQL query: Documentation DROP VIEW IF EXISTS artistview CREATE VIEW artistview AS SELECT DISTINCT artist.idArtist AS idArtist,strArtist,strBorn,strFormed,artistinfo.strGenres,artistinf

我正在尝试操作此处找到的现有数据库

但出于某种原因,MariaDB不喜欢这种语法,尽管根据文档,它似乎是正确的

Error
SQL query: Documentation


DROP VIEW IF EXISTS artistview
CREATE VIEW artistview AS
SELECT DISTINCT  
artist.idArtist AS idArtist,strArtist,strBorn,strFormed,artistinfo.strGenres,artistinfo.strMoods,artistinfo.strStyles,strInstruments,strBiography,strDied,strDisbanded,strYearsActive,artistinfo.strImage,strFanart 
FROM artist   
LEFT OUTER JOIN artistinfo ON    artist.idArtist = artistinfo.idArtist
JOIN album ON album.strArtists = artist.strArtist
MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CREATE VIEW artistview AS
SELECT DISTINCT  
artist.idArtist AS idArtist,strArt' at line 2
正在运行的版本为:

服务器:通过UNIX套接字的本地主机 服务器类型:MariaDB 服务器版本:5.5.37-MariaDB-源分发 协议版本:10 用户:root@localhost 服务器字符集:UTF-8 Unicode utf8 我不是SQL专家,似乎找不到哪里出了问题。
有什么想法吗?

SQL语句需要以结尾结束;您还可以使用和删除DROP语句。