간단한 검색 노트

7436 단어
1select* from Info#       
select Code, Name from Info #     
2select*from Info where code='p001';#    

select*from Info where Nation='n001' and Sex=true;#        

select*from Info where Sex=false or Nation='n002' #         

3.    

 select*from ChinaStates where AreaName Like ' %'#       

  select*from ChinaStates where AreaName Like '% %'#        
 
 
select*from ChinaStates where AreaName Like'_ %' #              
  
4.    
 
select*from Car order by Code desc #desc   asc  

select*from Car order by Brand

select*from Car order by Brand, Powers #       

5.    (    )

select count(*)from Car  #            code    


select max(Price) from Car#     
 

select min(Price) from Car #     



select avg(Price) from Car  #     



select sum(Price) from Car  #    

select max(price),min(price),avg(price) from car #            
 
6.    
 

select  price,count(*), max(price) from fruit group by price #               


select *from Car group by Brand having count(*)>2 #            2 


7.    
select *from Car limit 0,5  #            
 

8.    

select distinct oil from car

좋은 웹페이지 즐겨찾기