分支结构
if
if(){}
if(){
}else{
}
if(){
}else if(){
}else if(){
}else{
}
switch
// byte short int char String enum
switch(表达式){
// 常量值,而且不能重复出现
case 常量:
break;
case 常量1:
break;
default:
break;
}
循环
1001 1002 。。。。1010
delete from shoppingcart where sc_id = 1001;
delete from shoppingcart where sc_id = 1001;
delete from shoppingcart where sc_id = 1002;
delete from shoppingcart where sc_id = 1003;
delete from shoppingcart where sc_id = 1004;
delete from shoppingcart where sc_id = 1005;
…
delete from shoppingcart where sc_id = 1010;