drop database expenses2006;
create database expenses2006;
use expenses2006;
create table January ( <-- line 5
id int not null auto_increment,
Date varchar(5),
Description varchar(50),
Office Exp. decimal(),
Dues/Public decimal(),
Business Lunch decimal(),
Conf./Cont. ED. decimal(),
Supplies for Prod. decimal(),
Small Equip. decimal(),
Prom./Adv. decimal(),
Travel decimal(),
Freight decimal(),
Photo decimal(),
Post decimal(),
primary key(id)
);
I have it make an identical table for every month of the year. It gives me messages saying something is wrong with the 'decimal' in line five. I have tried decimal, decimal(3,2), and as you can see decimal().
Last edited by crazycoder; 03-11-2006 at 06:25 PM.
I've never worked with a database system that allowed column names with slashes, space, or periods. Could that be the problem?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Error messages are notorious for being misleading.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks