- 修改数据库
INSERT INTO usering (Name,Tel,Content,Date) VALUES
(‘小王’,’13254748574’,’高中毕业’,’2007-05-06’); UPDATE usering SET Date =
CURDATE() WHERE Name = ‘张三’; DELETE FROM usering WHERE Name = ‘张四’;
- Java练习题:用1,2,3,4组成互不相同不重复的三位数
public class Work20171030 { public static void main(String[] args) { int x = 1; int y = 1; int z = 1; int i = 0; for(x = 1; x <
5; x++) for(y = 1; y < 5; y++)
for(z = 1; z < 5; z++)
if(x != y&&x != z&&y != z) {
i++;
System.out.println(x*100 + y*10 + z);
} System.out.println(“由1,2,3,4共可以组成”+ i +”个互不相同且无重复数字的三位数”); } }