mysql 转大写
当前表:
mysql> select * from table1; +----------+------------+-----+ | name_new | transactor | pid | +----------+------------+-----+ | 1hahha | 1xiaohong | 1 | | 2hahha | 2xiaohong | 2 | | 3hahha | 3xiaohong | 3 | | 4hahha | 4xiaohong | 4 | +----------+------------+-----+ 4 rows in set (0.00 sec)
选择出名字,并且转为大写
mysql> select name_new,upper(name_new) from table1; +----------+-----------------+ | name_new | upper(name_new) | +----------+-----------------+ | 1hahha | 1HAHHA | | 2hahha | 2HAHHA | | 3hahha | 3HAHHA | | 4hahha | 4HAHHA | +----------+-----------------+ 4 rows in set (0.01 sec)