我的经理考我SQL 急啊
来源:百度知道 编辑:UC知道 时间:2024/06/23 02:38:50
2。查询是133一个号码出现几次 不是133的号码出现几次?并且降续排列
3。查询qq表里不重复的号码有多少
4。删除QQ表里以133开头的号码
5。修改QQ表里13080762942号码为13204012780
6。填加到QQ表里22855936这个号码
1、select * from 表1 where 字段 like '133%' ;
2、select 字段1 ,count(字段1) from 表1 where 字段1 like '133%' group by 字段1 order by desc ;
select 字段1 ,count(字段1) from 表1 where 字段1 not like '133%' group by 字段1 order by desc
3、select distinct 字段1 ,count(字段1) from 表1 where 字段1 like '133%' group by 字段1 having 字段1=1 ; ;
4、delete from 表1 where 字段1 like '133%' ;
5、alter 表1 set 字段1=13204012780 where 字段1=13080762942;
6、insert into 表 values ('22855936')
题多分少 ....哎
1。select * from 表1 where 字段 like + ' 133 '+'%'
2。select count(*) from 表1 where 字段 like + '133'+'%'
select count(*) from 表1 where 字段 like + '~133'+'%'
3。。。
有事 我先退 回来再给你答案
把表结构发过来就好说了
1、select * from 表1 where 字段 like '133%' ;
2、select 字段1 ,count(字段1) from 表1 where 字段1 like '133%' group by 字段1 order by desc ;
3、select 字段1 ,count(字段1