ALTER TABLE `basket` ADD `STATUS` TINYINT NOT NULL DEFAULT '0';
UPDATE `basket` SET `STATUS`=1 WHERE `ORDERID` <> 0; 