开户项目的sql查询语句备查

查询全国所有的券商名录

SELECT id,security,province,city,borough FROM t_security GROUP BY security ;

 

查询某个省份的所有券商名录

SELECT id,security,province,city,borough FROM t_security WHERE py_province='sd' GROUP BY security ;

 

查询某个份的某个城市的所有券商名录

SELECT id,security,province,city,borough FROM t_security WHERE py_province='sd' AND py_city='jns' GROUP BY security ;

 

查询某个份的 城 的县的 券商名单

SELECT id,security,province,city,borough FROM t_security WHERE py_province='sd' AND py_city='jns' AND py_borough='lcq' GROUP BY security ;

 

猜你喜欢

转载自www.cnblogs.com/jnhs/p/10097587.html
今日推荐