Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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;
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #add #columns #table #mysql
ADD COMMENT
Topic
Name
3+1 =