phpcms论坛的看到的-----做筛选功能-----自定义函数$v){ if($v['parentid']==$field_value){ $array[$k]['name'] = $v['name']; $array[$k]['value...
分类:
Web程序 时间:
2015-08-28 17:28:26
阅读次数:
391
Oracle语句如下:
使用方法:start with.....connect by prior。其中start with后面跟的条件1是父节点的查询条件,connect by prior后面跟的条件2是与记录的父节点相同的子节点中的数据。
示例:
SELECT id,
name as text,
parent_id as parentId
from ...
分类:
数据库 时间:
2015-08-08 21:24:17
阅读次数:
147
1 function convert(rows){ 2 function exists(rows, parentId){ 3 for(var i=0; i 1 $("#menuTree1").tree({ 2 ...
分类:
其他好文 时间:
2015-08-04 15:20:30
阅读次数:
199
1.先定义一个类型 public class Node { [JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)] public string id { g...
1 SELECT SUBSTR(SYS_CONNECT_BY_PATH(tb.name,'->'),3) name2 FROM table tb3 START WITH nvl(tb.parentid,0)=04 CONNECT BY PRIOR I...
分类:
数据库 时间:
2015-07-24 18:04:57
阅读次数:
185
create table TREE
(
TREEID VARCHAR2(20) not null,
LABLE VARCHAR2(50) not null,
PARENTID VARCHAR2(20)
);
--创建主键
alter table TREE add constraint PK_TREE primary key (TREEID);
--创建表内外键...
分类:
其他好文 时间:
2015-07-18 17:07:09
阅读次数:
171
/* 1 用子查询 可以过滤掉parentID为NULL的*/select * from Bid_ProjectPackageAlteredDesignInfo t0where exists( select 1 from ( select ParentID, max(Alt...
分类:
数据库 时间:
2015-07-16 11:02:27
阅读次数:
174
推广渠道表有ParentID字段,代表上下层级关系。现要统计每个推广员,推广了多少人? 1 --创建表结构,插入测试数据 2 USE DBA_Monitor 3 GO 4 CREATE TABLE [dbo].[TGYinfo]( 5 [TGYID] [int] IDENTITY(1,1) ...
分类:
其他好文 时间:
2015-07-11 18:14:42
阅读次数:
134
From:http://www.cnblogs.com/smailxiaobai/archive/2012/01/13/2321850.html--建立一个数据表这可以是你的一个物理表declare @temp table( ID varchar(20), ParentID varcha...
分类:
其他好文 时间:
2015-07-10 13:23:27
阅读次数:
107
新建测试表CREATE TABLE [dbo].[test]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [parentId] [bigint] NULL, [name] [nvarchar](50) NULL, [jb] [int] NULL,) GO插入测试数据...
分类:
数据库 时间:
2015-07-06 11:44:02
阅读次数:
139