Home  >  Q&A  >  body text

mysql - 求纠正一个sql语句

linux表名区分大小写。现在无法修改配置文件 只能从sql语句入手

select * from (select lower('WP_USER')) as t ;

这样的话输出

mysql> select * from (select lower('WP_USER')) as t;
lower('wp_user')
wp_user

1 row in set (0.00 sec)

如何才能查到的数据呢?

大家讲道理大家讲道理2716 days ago437

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 16:14:24

    Why do you have to modify the table on Linux? Directly using third-party software, mysql server or Navicat or even phpmyadmin on the web page are easier to operate than Linux. If it is to practice mysql commands, those tools also have command interfaces

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 16:14:24

    Solving the case sensitivity problem of MYSQL under LINUX
    http://www.2cto.com/database/...

    reply
    0
  • Cancelreply