摘要:
1,数据库2005之前,使用函数实现。(根据子节点查找父节点) if object_id('f_getParentBySon') is not null drop function f_getParentBySonGOCREATE function f_getParentBySon(@id varc 阅读全文
摘要:
想法是 如果order=81的 stats !=1的情况下,不会查询order=129的数据,反之,当order=81的stats=1,就需要显示order=129的数据 代码: select * from syscon where number=3 and ( CASE WHEN 1=(SELEC 阅读全文