My apology with my English. I am currently trying to create a database in putty, for words we use varchar, but what about if we want to insert number? for example i am creating a car database which include the year of the making, the price, the making and the model of the car.
What is the correct syntax for price, i didn't do the right code for it as i receive an error?
Thanks!
this is my code:
CREATE TABLE cars(
cars_id int(10) UNSIGNED not null AUTO_INCREMENT PRIMARY KEY,
make VARCHAR(25) not null,
model VARCHAR(25) not null,
price(value) null float,
yom varchar(25) not null
);