Cambio tipo variabile Price in tabella Products (fix decimali)

This commit is contained in:
2026-03-20 11:39:33 +01:00
parent 81a06bcb70
commit 9a8eed1bce

View File

@@ -20,7 +20,7 @@ CREATE TABLE Products(
ProductName VARCHAR(104),
Description TEXT,
CategoryID INT,
Price NUMERIC,
Price DECIMAL(10,2),
ImagePath VARCHAR(255),
StockQuantity INT DEFAULT 0,
FOREIGN KEY (CategoryID) REFERENCES Categories(CategoryID)
@@ -50,4 +50,4 @@ INSERT INTO Categories(Name) VALUES
('Elettronica'),('Networking'),('Telefonia');
INSERT INTO Products(ProductName,Description,CategoryID,Price,ImagePath,StockQuantity) VALUES
('Yealink T31P',NULL,3,51,'t31p.png',104);
('Yealink T31P',NULL,3,'51.21','t31p.png',104);