add multiple columns mysql code example
Example 1: how to add more columns to a table in mysql
CREATE TABLE IF NOT EXISTS vendors (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255)
);
ALTER TABLE vendors
ADD COLUMN phone VARCHAR(15) AFTER name;
Example 2: update multiple columns in mysql
UPDATE newpurchase
SET receive_qty = 20, pub_lang = 'Hindi', receive_dt = '2008-07-10'
WHERE purch_price > 50;