puccaso
November 20th, 2007, 05:39 PM
CREATE TABLE `customer` (
`customer_id` int(8) NOT NULL auto_increment,
`username` varchar(20) collate ascii_bin NOT NULL default '',
`first_name` varchar(15) collate ascii_bin NOT NULL default '',
`last_name` varchar(30) collate ascii_bin NOT NULL default '',
`DOB` date NOT NULL default '0000-00-00',
`address_line1` varchar(20) collate ascii_bin NOT NULL default '',
`adress_line2` v
im trying to get the username table to be authentic, ie
i noticed i would have a problem with username duplication
what do i do to do the table or the db to make it spit and error out if a username is used twice..?
`customer_id` int(8) NOT NULL auto_increment,
`username` varchar(20) collate ascii_bin NOT NULL default '',
`first_name` varchar(15) collate ascii_bin NOT NULL default '',
`last_name` varchar(30) collate ascii_bin NOT NULL default '',
`DOB` date NOT NULL default '0000-00-00',
`address_line1` varchar(20) collate ascii_bin NOT NULL default '',
`adress_line2` v
im trying to get the username table to be authentic, ie
i noticed i would have a problem with username duplication
what do i do to do the table or the db to make it spit and error out if a username is used twice..?