jeddi
03-04-2009, 06:08 PM
Hi,
I have a client table which is now active, I created it
with this type of command:
$sql = "CREATE TABLE `clients` (
`confirm` char(1) NOT NULL default '',
`type` char(1) NOT NULL default '',
`user_id` varchar(25) NOT NULL default '',
`profile` text NOT NULL default '',
...more ....
KEY `email` (`email`),
PRIMARY KEY (user_id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1";
Now I want to add this extra field :
`type` char(1) NOT NULL default
What syntax do I use ?
thanks for your help :)
I have a client table which is now active, I created it
with this type of command:
$sql = "CREATE TABLE `clients` (
`confirm` char(1) NOT NULL default '',
`type` char(1) NOT NULL default '',
`user_id` varchar(25) NOT NULL default '',
`profile` text NOT NULL default '',
...more ....
KEY `email` (`email`),
PRIMARY KEY (user_id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1";
Now I want to add this extra field :
`type` char(1) NOT NULL default
What syntax do I use ?
thanks for your help :)