ALTER TABLE 表名 DROP 属性名 删除数据表 DROP TABLE 数据库名.表名; 用户管理 创建用户 CREATE USER usernamehost IDENTIFIED By password; username:欲创建用户的用户名 password:用户密码 host:主机地址,例如 localhost、192…
1.For-In循环 //集合循环
let names ["a", "b", "c"]
for name in names {print("Hello, \(name)!")
}
//次数循环
for index in 1...5{print("Hello! \(index)")
}
//不需要值时可以使用 _ 来忽略此值
for _ in 1...5{…