Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Altering Table in SQL


Guest

Recommended Posts

Posted

I am adding a contribution called category description, and it is telling me to

 

ALTER TABLE `categories_description` ADD `categories_description` text NOT NULL ;

 

I am in my sql and am assuming I have to add another field to the "categories_description" table, but what does the text NOT NULL mean

 

Apologies if this is a stupid question!!!

 

Thanks

Colin

Posted

The text part means that you can enter just about any character and enter a lot of characters in that field. The Not Null means that when you create a row something needs to be entered in that column (it can't be left blank).

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Posted
The text part means that you can enter just about any character and enter a lot of characters in that field. The Not Null means that when you create a row something needs to be entered in that column (it can't be left blank).

 

Thanks, I was just a bit hesitant about adding the row, but once I pressed the button, I understood. I am more familiar with access and understood the values, just not in which fields I had to add them.

 

Oh well that was easier than I thought, there is bound to be a hiccup later!!!

 

Colin G.

Archived

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

×
×
  • Create New...