• ADADADADAD

    MySQL运行SQL文件时出现问题的解决方法[ mysql数据库 ]

    mysql数据库 时间:2024-11-28 13:27:14

    作者:文/会员上传

    简介:

    参考:Mysql错误:check the manual that corresponds to your MySQL server version for the right syntax【加 `符号、修改有冲突的字段名】check the manual that correspon

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    参考:

    Mysql错误:check the manual that corresponds to your MySQL server version for the right syntax【加 `符号、修改有冲突的字段名】

    check the manual that corresponds to your MySQL server version for the right syntax错误【字段名用了关键字】

    check the manual that corresponds to your MySQL server version for the right syntax to use near【where前多加了逗号】

    Mysql异常check the manual that corresponds to your MySQL server version for the right syntax总结【sql是否有中文字符 、是否与关键字冲突、是否含特殊字符、是否正确分行】

    这些文章里的答案都没有解决我的问题!!!

    后面我使用“MySQL的工作台workspace8.0”,运行SQL文件,要是遇到的错误,会有红色下划线提示,发现:(SQL文件的时间有问题)

    不是insert语句有问题,也不是create创建有问题,而是时间类型有问题,无论是datetime还是time,Navicat premium工具转储数据表的结构,时间后面都会带“(0)”!!!

    改:

    把datetime(0)全替换成datetime或time(0)【如图所示,在xx.sql中,手动修改】:

    MySQL运行SQL文件时出现问题的解决方法.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: mysqlsql