DirtySnipe Posted May 29, 2008 Share Posted May 29, 2008 Ive searched the forum and I cannot find a solution. I need to insert the following fields into an exsisting table. How do I do it? The table I need to insert into is called mrbs_entry Here are the fields. `lavf` varchar(3) NOT NULL default 'No', `lavl` varchar(3) NOT NULL default 'No', `ampli` varchar(3) NOT NULL default 'No', `proie` varchar(3) NOT NULL default 'No', `aconf` varchar(3) NOT NULL default 'No', `vconf` varchar(3) NOT NULL default 'No', `presi` varchar(3) NOT NULL default 'No', `puli` varchar(3) NOT NULL default 'No', Link to comment https://forums.phpfreaks.com/topic/107761-solved-how-to-insert-these-fields-into-an-exsisting-table/ Share on other sites More sharing options...
Xurion Posted May 29, 2008 Share Posted May 29, 2008 You could use: ALTER TABLE yourtable ADD `lavf` varchar(3) NOT NULL default 'No', `lavl` varchar(3) NOT NULL default 'No', `ampli` varchar(3) NOT NULL default 'No', `proie` varchar(3) NOT NULL default 'No', `aconf` varchar(3) NOT NULL default 'No', `vconf` varchar(3) NOT NULL default 'No', `presi` varchar(3) NOT NULL default 'No', `puli` varchar(3) NOT NULL default 'No'; Link to comment https://forums.phpfreaks.com/topic/107761-solved-how-to-insert-these-fields-into-an-exsisting-table/#findComment-552388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.