How to insert a default value in all columns after inserting a value in a single column,
Example: I created a product table and the columns are id (autoincrement), product_name, and item.
CREATE TABLE product ( id int AUTOINCREMENT, product_name varchar(255), item int ); How can I insert only the product_name and have the item automatically populated with the value 30?
insert into product values ( 'burger' ) and have the result be
id: product_name: item: 7 burger 30