MYSQL select查询语句(常用!)

查询语句不区分大小写。 select * from 表名←*的意思代表着全部, 若想查询单行字段名中的所有数据,可以将*替换成字段名。 如 select name from 表名 取别名: 例子→select 字段名 as '姓名' from 表名;  //表名和字段名都可以取别名 如 select stu.id as '学号' from student stu;   //as可以忽略不写,但是为
相关文章
相关标签/搜索