求MySQL 判断列是不是存在 不存在创建 的语句

WBOY
Release: 2016-06-13 13:01:16
Original
1062 people have browsed it

求MySQL 判断列是否存在 不存在创建 的语句
求MYSQL 判断列是否存在 不存在创建 的语句(因为之前使用的一款程序加个功能,需要为表加个列)
------解决方案--------------------
查看 ALTER 指令的用法

据观察,并没有对添加已存在的字段有什么限制
显然同名字段是不会并列的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template