http://blog.csdn.net/qiaqia609/article/details/41445233
SELECT urt.id,urt.user_id userId,urt.source_id sourceId,urt.Trade_fee TradeFee,urt.total_balance totalBalance,urt.gmt_Trade gmtTrade,urt.Trade_type TradeType,urt.remarks,urt.flag,urt.audit_name auditName,urt.audit_reasons auditReasons,urt.gmt_audit gmtAudit,urt.pay_status payStatus,urt.payer,urt.gmt_pay gmtPay,pay_info payInfo FROM xy_user_reward_Trade urt,( SELECT TOP 6 row_number () OVER (ORDER BY id ASC) row_num,id FROM xy_user_reward_Trade WHERE Trade_type != 0 ) urt2 WHERE urt.id = urt2.id AND urt2.row_num > 3 ORDER BY urt2.row_num ASC
SELECT urt.id,id FROM xy_user_reward_Trade ) urt2 WHERE urt.id = urt2.id and Trade_type != 0 AND urt2.row_num > 3 ORDER BY urt2.row_num ASC
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。