Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

alter table add column and foreign key mysql

ALTER TABLE database.table
  ADD COLUMN columnname INT DEFAULT(1),
  ADD FOREIGN KEY fk_name(fk_column) REFERENCES reftable(refcolumn) ON DELETE CASCADE;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #alter #table #add #column #foreign #key #mysql
ADD COMMENT
Topic
Name
4+6 =