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!

Deleting a table and autonumber on remote server

Status
Not open for further replies.

andymccorkell

Technical User
Sep 16, 2003
1
GB
Hey

I've been using access to remote edit a mysql database however im getting 2 problems:

1. it wont seem to let me use autonumber? i set up my primary field as an autonumber but then when it saves it to the server it is just number? then it wont let me change it?

2. due to this i have a number of tables that i need to delete and try again. ive been trying this,

DROP TABLE {galleryv3};

in the mysql console window in access as a straight through query but it gives me an error regarding my syntax?

any help would be more than apriciated.


Andy

ps what is the best way of editing/managing my database? access?
 
1. By &quot;won't let you change it&quot;, do you mean &quot;won't let you set the auto_increment to a particular value? In MySQL 4.x, you issue the query &quot;alter table <tablename> auto_increment = 1&quot;.

You can't do it in MySQL 3.x -- you have to drop and recreate the table. However, when performing a &quot;DELETE * FROM <table>&quot; query, MySQL 3.x actually drops and recreates the table in order to perform the query more quickly. The auto_increment should reset.

If you're asking why the column type specified is an INT, it's because an auto_increment column has to be an integer type in MySQL.


2. I don't know where you're getting the curly braces from, but lose them.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top