Jump to content

How do I update this?


BrentonHale

Recommended Posts

i dont know how to update my mysql statement..  I forgot an "S" on the end of something. Let me show you what I mean:

 

 

CREATE TABLE url_associations (ua_id SMALLINT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
url_id SMALLINT(4) UNSIGNED NOT NULL, url_category_id TINYINT(3) UNSIGNED NOT NULL,
date_submitted TIMESTAMP, approved CHAR(1) DEFAULT 'N' NOT NULL, PRIMARY KEY (ua_id));

 

see where it says "url_associations"  I forgot the "s" there.  How do I update this?

 

i think u start out using UPDATE content (which is the tablename) but after that im lost

Link to comment
Share on other sites

The UPDATE syntax is for updating data in a table, if you wish to modify the table structure itself you are probably looking for the ALTER syntax. Though having said that I'm not entirely clear on what exactly you are wishing to change. It appears you maybe want to rename the table, this can be done with the RENAME TABLE syntax (or I believe it can be done with ALTER TABLE if you really wanted).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.