数据库结构列出来会不会出现12个人中有一个的下线 是abcd?
解决方案 »
- 崩溃!高手帮我解释下,innerHTML
- 如何在Asp.net的Web服务器控件里使用AutoCompleteExtender
- 发布一个控件,绝对不错!
- JQuery easyui导致基本的ASP.NET事件失效
- web service中的状态保持问题
- 这个问题可能大家都遇到过
- 并非所有路径都有返回值。什么意思?
- How to add rows into DataGrid programmatically?
- fileupload控件和弹出窗口的问题
- 如何将Sql Server中的数据库与ASP.net一同打包、部署?就象PetShop那样。
- 关于Datatable的问题????
- CS0117:“object”并不包含对“CreateChildView”的定义
sign表中设置(id,user(被荐人),upline(推荐人)然后select count(*) as aabb from sign where upline='abcd'
count(*)
from
sign
where
upline
in
(
select
username
from
sign
where
upline = 'abcd'
)
如果需要更多的级次,建议增加数据库字段进行标注。