•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 375,198 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,996 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 435 | Replies: 8
![]() |
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,057
Reputation:
Rep Power: 8
Solved Threads: 229
•
•
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 174
Reputation:
Rep Power: 1
Solved Threads: 20
•
•
Join Date: Mar 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
my table is called Orders, it have four column , first col is ORDER ID, second col customer ID, third column is AMOUNT n last colum is DATE,
so ma problem i dont know where i make a mistake,
i was typing that
mysq>
can you help where is a my mistake.
THANKS,
so ma problem i dont know where i make a mistake,
i was typing that
mysq>
sql Syntax (Toggle Plain Text)
CREATE TABLE orders( ORDER id INT NOT NULL AUTO_INCREMENT,, customer id INT NOT NULL, amount DECIMAL(4,2) NOT NULL, date DATE NOT NULL, );
can you help where is a my mistake.
THANKS,
Last edited by peter_budo : Apr 3rd, 2008 at 10:45 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Mar 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
table is called Orders, it have four column , first col is ORDER ID, second col customer ID, third column is AMOUNT n last colum is DATE,
so ma problem i dont know where i make a mistake,
i was typing that
mysq>
can you help where is a my mistake.
THANKS,
so ma problem i dont know where i make a mistake,
i was typing that
mysq>
sql Syntax (Toggle Plain Text)
CREATE TABLE orders( ORDER id INT NOT NULL AUTO_INCREMENT,, customer id INT NOT NULL, amount DECIMAL(4,2) NOT NULL, date DATE NOT NULL, );
can you help where is a my mistake.
THANKS,
Last edited by peter_budo : Apr 3rd, 2008 at 10:50 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,057
Reputation:
Rep Power: 8
Solved Threads: 229
There are so many errors.
1. order id should be order_id
2. same with customer id.
3. You have 2 , in order id line
Try this.
1. order id should be order_id
2. same with customer id.
3. You have 2 , in order id line
Try this.
mysql Syntax (Toggle Plain Text)
CREATE TABLE orders ( order_id INT NOT NULL AUTO_INCREMENT , customer_id INT NOT NULL , amount DECIMAL( 4, 2 ) NOT NULL , DATE DATE NOT NULL , PRIMARY KEY (order_id) ) ENGINE = INNODB
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,057
Reputation:
Rep Power: 8
Solved Threads: 229
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
Threads merged
•
•
•
•
Do not flood the forum by posting the same question more than once (ie in multiple forums).
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
Similar Threads
- I am New In MySQL. Problem With MySQL Database Plz Help. (MySQL)
- about VC+MySQL problem:) (C)
- php mysql problem (PHP)
- powerbuilder+mysql (MySQL)
- PHP + MySQL Problem (PHP)
- installing php and mysql properly (Windows Servers and IIS)
- Port 80 problem (Linux Servers and Apache)
Other Threads in the MySQL Forum
- Previous Thread: how to write nested queries in a function
- Next Thread: MySQL Memory Problems When Sorting Multiple Columns



Linear Mode