Database stay button funny movie title

 

 Analysis: simple query. The film describes the conditions of use for non-boring can be drawn not like statement. Id by the condition is an odd number or may be derived id & 1 id% 2, the condition may be the result of levels statement order by stars

答案:select * from cinema where cinema.description not like 'boring' and id&1 order by rating desc

Knowledge: determining a value of an odd number of available statement id% 2; id & 1; mod (id, 2) = 1

Guess you like

Origin www.cnblogs.com/laixiaobin/p/11685138.html