MySQL: Insert rows using a column from another new table -
i've been fighting sql right on insert statement.. here's i'm trying do:
i have new empty table has 1-to-1 relationship table. since other columns have default values want insert primary key column new rows old table. table names dealer , dealer_nav , fields id , dealer_id respectively.
thanks!
insert dealer_nav(dealer_id) select id dealer (or vice versa, i'm not sure of 2 tables new , old)
Comments
Post a Comment