Home  >  Q&A  >  body text

phpadmin - mysql 修改数据库表名报错

  1. 我使用的sql语句是:
    RENAME TABLE "table 36" to "DW"

  2. 贴上相关代码

  3. 贴上报错信息

  1. 贴上相关截图

  2. 已经尝试过哪些方法仍然没解决(附上相关链接)

PHP中文网PHP中文网2716 days ago394

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:51:06

    Try this

    RENAME TABLE `table 36` to `DW`

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 13:51:06

    Is there an extra space after table36?

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:51:06

    Table names cannot be enclosed in double quotes. Generally, single quotes are used. It doesn’t matter. However, there are spaces in the middle of your table name. It is recommended to use single quotes

    reply
    0
  • Cancelreply