CREATE TABLE `ipt_order_no` (
`ipt_order_id` INT(11) NOT NULL DEFAULT '0',
`an` VARCHAR(9) NOT NULL DEFAULT '',
`rxdate` DATE DEFAULT NULL,
`order_no` INT(11) DEFAULT NULL,
`order_type` CHAR(3) DEFAULT NULL,
`entry_staff` VARCHAR(25) DEFAULT NULL,
`ward` VARCHAR(4) DEFAULT NULL,
`rxtime` TIME DEFAULT NULL,
PRIMARY KEY (`ipt_order_id`),
UNIQUE KEY `ipt_order_id` (`ipt_order_id`),
KEY `ix_an` (`an`),
KEY `ix_rxdate` (`rxdate`),
KEY `ix_order_no` (`order_no`)
)