SQL:创建一个表与货币型是给我这个错误在SQL:ERROR 1064(42000)
create table rentals
(
RentalID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
CustomerID INT UNSIGNED NOT NULL,
VideoID INT UNSIGNED NOT NULL,
DateOfRental DATE NOT NULL,
RentalCost MONEY NULL
);
错误:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MONEY NULL)' at line 7
你从哪里知道mysql有'MONEY'数据类型? – csmckelvey