摘要:
当你看到这个问题时,你会给出什么答案? 先说结论:两者没有区别,它们存储的长度是一样的。 1)先创建一个表:包含两个4个字段用于测试 create table user( id int(8) not null, id2 int(8) zerofill not null , type int(1) n 阅读全文
摘要:
1.判断数据库是否存在 select 1 from information_schema.schemata where schema_name='数据库名'; 指定数据库名查询是否存在,若存在则返回1,若不存在测返回空。 2.判断表是否存在 select 1 from information_sch 阅读全文