Jump to content

[SOLVED] Need help to edit MySQL table.


jcoones

Recommended Posts

Thank you very much, however, can you give me an example?  I'm not up on MySQL.

 

This is an excerpt from the .sql file used to set up all of the tables.

This is the section of the .sql file that sets up the customfields table.

 

--------------------------------------------------------------------

 

CREATE TABLE `customfields` (

  `cust_id` int(11) NOT NULL auto_increment,

  `cust_adtype_id` int(11) NOT NULL default '0',

  `cust_field_type` varchar(40) NOT NULL default '',    <-----  This is what I need to change!

  `cust_order` int(11) NOT NULL default '0',

  `cust_title` varchar(20) NOT NULL default '',

  `cust_include_search` tinyint(1) NOT NULL default '0',

  `cust_include_search_results` tinyint(1) NOT NULL default '0',

  PRIMARY KEY  (`cust_id`)

) TYPE=InnoDB;

 

---------------------------------------------------------------------

 

How would I use the ALTERTABLE in this instance?

 

Your help is very much appreciated.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.