简体   繁体   中英

How can I alter a table to drop a column if it exists?

Before you flag this as a duplicate, I've read the other question , and it pertains to a different version of MySQL. I'm running the next up major version: MySQL version 5.0.91-community

I need to drop a column if it exists, and I also need to add a column if not exists.

How can I go about doing this in PHP?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM