CREATE TABLE `b2bbuilder_brand_cat` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`pid` INT NULL ,
`sort` INT NULL DEFAULT '0',
`catname` VARCHAR( 100 ) NULL
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE `b2bbuilder_brand` ADD `catid` INT NULL AFTER `char_all`;