赞
踩
表结构:
- CREATE TABLE `UserInfo` (
- `Id` BIGINT(20) UNSIGNED NOT NULL COMMENT '唯一id',
- `UserId` INT(10) UNSIGNED NOT NULL,
- `Name` INT(10) UNSIGNED NOT NULL,
- `Age` TINYINT(4) NOT NULL,
- `CreateTime` DATETIME NOT NULL,
- PRIMARY KEY (`Id`),
- INDEX `Index 2` (`Age`, `CreateTime`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=InnoDB
- ;
1):
SELECT Age,CreateTime FROM `UserInfo` where Age=18 ORDER BY CreateTime desc;
2):
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。