Forum Moderators: open

Message Too Old, No Replies

Basic Database Help Needed

Insert New Field

         

Edge

1:29 am on Feb 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm clueless...

I need to modify an existing database table called "jb_jobs" by adding a new field "appox_salary_range".

I have PHPMYadmin, however I have only used it to perform backups and restores.

I have MySQL - 4.0.20 and am running phpMyAdmin - 2.8.0.3.

Thanks in advance

phranque

2:44 am on Feb 22, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



select the db name, then the table name.
columns are displayed to the right.
below the column display there is a row where you can add a new field at the beginning/end of the table or after a specified column.

or you can use the mysql command line interface:

ALTER TABLE jb_jobs ADD `appox_salary_range` varchar(255) default NULL;

or use "float" instead of "varchar(255)" if appropriate...

Edge

5:06 pm on Feb 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks!, it seems to have worked!