《Mysql必读mysql判断字段是否存在的方法》要点:
本文介绍了Mysql必读mysql判断字段是否存在的方法,希望对您有用。如果有疑问,可以联系我们。
			           
1. desc 命令 
格式: desc tablename columnname 
例子: 
desc `table` `mid` 
desc `table` '%abc%' 
2. show columns 命令 
格式: show columns from tablename like columnname 
例子: 
show columns from `table` like 'mid' 
show columns from `table` like '%abc%' 
3. describe 命令 
格式: describe tablename columnname 
describe 相于 show columns from 
例子: 
describe `table` `mid` 
describe `table` '%abc%'
《Mysql必读mysql判断字段是否存在的方法》是否对您有启发,欢迎查看更多与《Mysql必读mysql判断字段是否存在的方法》相关教程,学精学透。维易PHP学院为您提供精彩教程。
转载请注明本页网址:
http://www.vephp.com/jiaocheng/13130.html