I need to do a stock control, where the product code should be varchar
, because the code will be formed by the short name of the product category followed by a sequential number, so I will not use the product_ID
column that is int
, but I'm going to use product_codev
, which is varchar
, and needs to be auto incremental. How do I do it with triggers
?