mysql 数据库设计

直接创建表:

create table teststaff(id int not null auto_increment,idCard varchar(10),primary key(id))  engine=myisam;

把innodb改成myisam

ALTER TABLE 'staff' ENGINE = MyISAM;

获取最后更新时间:

select 'staff',UPDATE_TIME from information_schema.TABLES where TABLE_SCHEMA='test' order by UPDATE_TIME desc limit 1;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章