《MySQL常用命令1 / 29 MySQL 常用命令汇总 http://www.database8.com 2011-3-1 2 / 29 Mysql 常用命令 show databases; 显示数据库 create database name; 创建数据库 use databasename; 选择数据库 drop database name 直接删除数据库,不提醒 show tables; 显示表 describe tablename; 显示具体的表结构 select 中加上 disti
mysql中的去除左空格函数: LTRIM(str) Returns the string str with leading space characters removed. 以下是代码片段: 代码如下: mysql> SELECT LTRIM(‘ barbar’); -> ‘barbar’ This function is multi-byte safe. mysql中的去除右空格函数: RTRIM(str) Returns the string str with trail