博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
一条sql
阅读量:5051 次
发布时间:2019-06-12

本文共 903 字,大约阅读时间需要 3 分钟。

包含全部: SELECT u.id,u.user_name,usa.fixed_amount,d.uloadtype,d.min_loan_money FROM fanwe_user_autobid usa LEFT JOIN fanwe_user u ON u.id=usa.user_id LEFT JOIN fanwe_deal d ON d.id=1620 LEFT JOIN fanwe_user du ON du.id = d.user_id WHERE (usa.fixed_amount >=d.min_loan_money or d.min_loan_money = 0) AND (usa.fixed_amount <= d.max_loan_money or d.max_loan_money = 0) AND usa.fixed_amount <= d.borrow_amount*0.2 AND usa.is_effect = 1 AND (1482777186 between usa.min_time and usa.max_time) AND (d.rate between usa.min_rate AND usa.max_rate) AND (d.repay_time between usa.min_period AND usa.max_period) AND usa.user_id not in (SELECT user_id FROM fanwe_deal_load WHERE deal_id=1620) and usa.user_id <>d.user_id AND usa.fixed_amount < (d.borrow_amount - d.load_money) AND FIND_IN_SET(d.cate_id,usa.deal_cates) GROUP BY usa.user_id ORDER BY usa.last_bid_time ASC

 

转载于:https://www.cnblogs.com/hnbiao/p/6225123.html

你可能感兴趣的文章
Linux上让MySQL不区分表名大小写的方法
查看>>
Linux文件管理_1
查看>>
steps1-->Struct2-控制器组件
查看>>
sql server中index的REBUILD和REORGANIZE的区别及工作方式
查看>>
sql server升级打补丁
查看>>
ubuntu10.04安装x264库
查看>>
772002画马尾
查看>>
PHP传值和传引用、传地址的区别
查看>>
【Leetcode】Search in Rotated Sorted Array II
查看>>
蓬佐错觉:蓬佐错觉
查看>>
Redis:目录
查看>>
[usaco3.3.2]shopping
查看>>
分享一下:2011回顾:20个将JavaScript推到极致的网站(转)
查看>>
作业5.2 对5.1内容的完善体会
查看>>
使用antd UI 制作菜单
查看>>
五分钟入门 Dingo API
查看>>
带入gRPC:对 RPC 方法做自定义认证
查看>>
HP下kafka的实践
查看>>
Buffer.compare()
查看>>
buf.writeInt32BE()函数详解
查看>>