nathanmaxsonadil Posted July 29, 2007 Share Posted July 29, 2007 what's the mysql command for inserting a row into a column? Link to comment https://forums.phpfreaks.com/topic/62310-solved-mysql-help/ Share on other sites More sharing options...
AndyB Posted July 29, 2007 Share Posted July 29, 2007 You can't insert a row into a column. You can insert a row into a table using INSERT into tablename .... http://www.tizag.com/mysqlTutorial/mysqlinsert.php Link to comment https://forums.phpfreaks.com/topic/62310-solved-mysql-help/#findComment-310094 Share on other sites More sharing options...
wildteen88 Posted July 29, 2007 Share Posted July 29, 2007 How do you mean? If you want to insert a new row and add data to a couple of the columns you can use INSERT along with listing the columns you want to add data to, eg: INSERT INTO tbl_name (`col1`, `col2`) VALUES ('col1_value', 'col2_value'); or if you want to add/update data to a column within an existing row you'd use UPDATE, eg: UPDATE tbl_name SET `col_name` = 'some_value' WHERE column_id = 'some_column_id_value' Link to comment https://forums.phpfreaks.com/topic/62310-solved-mysql-help/#findComment-310095 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.