mirror of
https://codeberg.org/ThisIsMiseryy/techstore
synced 2026-03-29 20:21:20 +00:00
Cambio tipo variabile Price in tabella Products (fix decimali)
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user