批改状态:合格
老师批语:
CREATE DATABASE test;//创建名为test的数据库CREATE TABLE user(id int,username varchar(30),password varchar(60),email varchar(30),c_time int(10));//创建user表并添加字段:id,username,password,email,c_timeINSERT INTO user (username,password,email,c_time) VALUES ('缘亦如此','123456','326280@qq.com','1629389260');//在user表中添加一条数据,username值为缘亦如此,password值为123456,email值为326280@qq.com,c_time的时间戳为1629389260INSERT INTO user (username,password,email,c_time) VALUES ('缘亦1','123456','3262801@qq.com','1629389250');INSERT INTO user (username,password,email,c_time) VALUES ('缘亦2','123456','3262802@qq.com','1629389290');//在user表中总共添加3条数据UPDATE user SET password="666666" where id = 1;//将user表中id值为1的数据password值改为666666


Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号