id 姓名 课程名称 分数1 张三 数学 692 李四 数学 893 张三 数学 69删除除了自动编号不同,其他都相同的学生冗余信息 完整的sql语句如下:DELETE FROM tablename where id not in (select bid from (select min(id) a Read More
background-size需要两个值,它的类型可以是像素(px)、百分比(%)或是auto,还可以是cover和contain。第一个值为背景图的width,另外一个值用于指定背景图上的height,如果只设定1个值,则第2个默认为auto,但当值为cover和contain时除外。.bg{background-size:100px 150px;} Read More
重装系统后,今天mysql提示1045错误无法连接上,找了很久得出方法如下:修改root密码即可正常。1,进入mysql控制台选择;2,use mysql;3,update user set password=password('新密') where user='root';4,flush privileges;5,完成 Read More
mysql中功能强大的trim()函数.去除两边空格:mysql> select trim(' hello world ');+-----------------------+| trim(' hello world ') |+-----------------------+| hello world |+-----------------------+1 row in set去除左边空格:select ltrim(' hello world ');去除右边空格:select rtrim(' hello world ');t Read More