时间:2021-07-01 10:21:17 帮助过:1人阅读
CREATE TABLE mytable (
  id                 int                  not null    auto_increment,
        ipaddress  varchar(45)   not null,
        time            datetime        not null,
        primary key  (id)
) ;
2 向表中插入一条记录,ip为127.0.0.1、时间为当前系统时间。
insert into mytable values(1, 127.0.0.1, now() );
3 删除表中所有ip为127.0.0.1的记录。
delete from mytable where ipaddress=‘127.0.0.1‘;
MySQL 基础
标签: