From 9a8eed1bcebf0744bac936c4a3e660ca5393e1ac Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Fri, 20 Mar 2026 11:39:33 +0100 Subject: [PATCH] Cambio tipo variabile Price in tabella Products (fix decimali) --- base_db.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_db.sql b/base_db.sql index a964293..2cc5621 100644 --- a/base_db.sql +++ b/base_db.sql @@ -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); \ No newline at end of file +('Yealink T31P',NULL,3,'51.21','t31p.png',104); \ No newline at end of file