Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a table

Status
Not open for further replies.

tonvaneck

IS-IT--Management
Jan 19, 2004
19
NL
Hello MySql users,

Using the tool isql 1.0.3 we are trying to create a table with the next sql statement:

use test
create table NewTb (MyFld char(20) not null);

an error code 1064 is generated (a syntax error)

Can someone tell me what we do wrong?

Nice regards,

Ton.
 
perhaps because there is no primary key definend ??

create table NewTb (MyFld char(20) not null,PRIMARY KEY (MyFld));

 
Hello hos2,

You gave the right information.

Nice regards,

Ton.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top