DROP TABLE IF EXISTS users;!40101 SET saved_cs_client = character_set_client ;!40101 SET character_set_client = utf8 ;CREATE TABLE users id bigint20 NOT NULL AUTO_INCREMENT COMMENT 主键 username
这段代码是创建了一个名为“users”的表格,拥有id、username、password、role和addtime五个字段。其中id为主键,自增长;username和password为必填项;role默认为“管理员”;addtime为添加时间,默认为当前时间。同时,该表中插入了两条数据,分别为id为1和2的记录。
原文地址: https://www.cveoy.top/t/topic/es10 著作权归作者所有。请勿转载和采集!