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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create table and fields using SQL 1

Status
Not open for further replies.

toyt78

Technical User
Apr 5, 2005
125
US
How do I create an Access 2000 table and fields using SQL?

My attempt for creating a new table called newTable with a primary key of table_id and two more fields called firstname and theNumber:
Code:
create table newTable
(table_id integer not null unique autonumber,
firstName text(12),
theNumber integer));

Please advise if this is okay?
 
You may try this:
create table newTable (
table_id counter(1,1) primary key,
firstName text(12),
theNumber integer
);

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top