zoukankan      html  css  js  c++  java
  • mysql 4.0迁移到5.0总结(一) 建库脚本的迁移

    经过尝试,两者之间有以下的区别:

    (1)4.0中vachar字段中,空格不被计数
    (2)4.0中,表名两端的空格会自动过滤
    (3)4.0中,vachar字段中,/不被计数
    (4)5.0中自增长类型必须单独设置成key或索引
    (5)5.0中,联合索引的总容量不能超过1000bytes,通过限定个别索引的有效长度进行改善
    (6)5.0中,Condition是关键字,不能作为字段名
    (7)5.0中create Table 语句中 最后一个字段后跟逗号,会报错

    以前的脚本在5.0上跑会出现的问题:

    (1)ERROR 1406 (22001): Data too long for column 'xxx' at row 1
    (2)ERROR 1103 (42000): Incorrect table name 'xxx '
    (3)ERROR 1075 (42000): Incorrect table definition; there can be only one auto colum
    n and it must be defined as a key

    (4)ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes
    (5)ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to use near ') TYP
    E=MyISAM' at line 9

  • 相关阅读:
    vue Ant Design 树形控件拖动限制
    defineProperty介绍及使用
    webpack 配置入门
    vscode 插件
    解决输入框自动填充账号密码的问题
    css 动画
    vue按钮权限控制
    git操作
    TCP和UDP的区别
    通信协议 HTTP TCP UDP
  • 原文地址:https://www.cnblogs.com/superch0054/p/4010113.html
Copyright © 2011-2022 走看看