CREATE TABLE [ANALYSE_STATISTICS_WHERE]
(
  [ID]  [varchar](50)  NOT NULL ,
  [FID]   [varchar](50)  NULL,
  [SLEFT]   [varchar](50) NULL,
  [FIELD]    [varchar](50) NULL,
  [SYMBOL]   [varchar](3000) NULL,
  [WHEREVALUE] [varchar](3000) NULL,
  [SRIGHT]     [varchar](50) NULL,
  [LOGIC]     [char](1) NULL,
   CONSTRAINT [PK_ANALYSE_STATISTICS_WHERE] PRIMARY KEY CLUSTERED 
(
	[ID]
)

)



  CREATE TABLE [ANALYSE_STATISTICS_CWHERE]
(
  [ID]        [varchar](50) NOT NULL,
  [FID]       [varchar](50)  NULL,
  [SLEFT]      [varchar](30)  NULL,
  [FIELD]     [varchar](50)   NULL,
  [SYMBOL]    [varchar](3000) NULL,
  [WHEREVALUE] [varchar](3000) NULL,
  [SRIGHT]     [varchar](50) NULL,
  [LOGIC]     [char](1) NULL, 
   CONSTRAINT [PK_ANALYSE_STATISTICS_CWHERE] PRIMARY KEY CLUSTERED 
(
	[ID]
)
)





  CREATE TABLE [ANALYSE_STATISTICS_RESULT]
(  
      [ID] [varchar](50)  NOT NULL,
	[FID] [varchar](50)  NULL,
        [FIELD1] [varchar](300)  NULL,
	[FIELD2] [varchar](300)  NULL,
	[FIELD3] [varchar](300)  NULL,
	[FIELD4] [varchar](300)  NULL,
	[FIELD5] [varchar](300)  NULL,
	[FIELD6] [varchar](300)  NULL,
	[FIELD7] [varchar](300)  NULL,
	[FIELD8] [varchar](300)  NULL,
	[FIELD9] [varchar](300)  NULL,
	[FIELD10] [varchar](300)  NULL,
	[FIELD11] [varchar](300)  NULL,
	[FIELD12] [varchar](300)  NULL,
	[FIELD13] [varchar](300)  NULL,
	[FIELD14] [varchar](300)  NULL,
	[FIELD15] [varchar](300)  NULL,
	[FIELD16] [varchar](300)  NULL,
	[FIELD17] [varchar](300)  NULL,
	[FIELD18] [varchar](300)  NULL,
	[FIELD19] [varchar](300)  NULL,
	[FIELD20] [varchar](300)  NULL,
	[FIELD21] [varchar](300)  NULL,
	[FIELD22] [varchar](300)  NULL,
	[FIELD23] [varchar](300)  NULL,
	[FIELD24] [varchar](300)  NULL,
	[FIELD25] [varchar](300)  NULL,
	[FIELD26] [varchar](300)  NULL,
	[FIELD27] [varchar](300)  NULL,
	[FIELD28] [varchar](300)  NULL,
	[FIELD29] [varchar](300)  NULL,
	[FIELD30] [varchar](300)  NULL,
	[FIELD31] [varchar](300)  NULL,
	[FIELD32] [varchar](300)  NULL,
	[FIELD33] [varchar](300)  NULL,
	[FIELD34] [varchar](300)  NULL,
	[FIELD35] [varchar](300)  NULL,
	[FIELD36] [varchar](300)  NULL,
	[FIELD37] [varchar](300)  NULL,
	[FIELD38] [varchar](300)  NULL,
	[FIELD39] [varchar](300)  NULL,
	[FIELD40] [varchar](300)  NULL,
	[FIELD41] [varchar](300)  NULL,
	[FIELD42] [varchar](300)  NULL,
	[FIELD43] [varchar](300)  NULL,
	[FIELD44] [varchar](300)  NULL,
	[FIELD45] [varchar](300)  NULL,
	[FIELD46] [varchar](300)  NULL,
	[FIELD47] [varchar](300)  NULL,
	[FIELD48] [varchar](300)  NULL,
	[FIELD49] [varchar](300)  NULL,
	[FIELD50] [varchar](300)  NULL,
	[SUSERNO] [varchar](200)  NULL,
   CONSTRAINT [PK_ANALYSE_STATISTICS_RESULT] PRIMARY KEY CLUSTERED 
(
	[ID]
)
)

  CREATE TABLE [ANALYSE_STATISTICS_MAIN]
(
   
  [ID]            [varchar](50) NOT NULL,       
  [STATISTICSNAME] [varchar](200) NULL,      
  [SDESC]          [varchar](200) NULL,    
  [TABLEID]        [varchar](50) NULL,     
  [TIMESTYPE]      [varchar](50) NULL, 
  [PLANARTABLE]    [varchar](50) NULL, 
  [PLANARFIELD]   [varchar](50) NULL, 
  [CPLANARFIELD]   [varchar](50) NULL,   
  [WHEREVALUE]    [varchar](3000) NULL,  
  [EXCELTEMPLATE]  [varchar](100) NULL,    
  [PLANARFIELDNAME] [varchar](100) NULL,   
  [WISMATCH]       [char](1) NULL,   
  [CJOIN]         [char](1) NULL,   
  [ISUNIT]        [char](1) NULL,   
  [SINPUTTYPE]     [char](1) NULL,    
  [SINPUTPAGE]     [varchar](300) NULL,    
  [ISAGV]          [char](1) NULL,    
  [ISSUM]          [char](1) NULL,   
  [ISSHOWTYPE]     [char](1) NULL,   
  [SHOWLINK]       [varchar](300) NULL,  
  [TIMETEMPLATE]   [varchar](200) NULL,   
  [CODETABLE]      [varchar](100) NULL,           
  [TBUTTON]       [varchar](100) NULL,       
  [ISNUMBER]      [char](1) NULL,   
  [ADDFIELD]       [varchar](300) NULL,
  [DCODE]       [varchar](64) NULL,   
  [ISZERO]       [char](1) NULL,   
 CONSTRAINT [PK_ANALYSE_STATISTICS_MAIN] PRIMARY KEY CLUSTERED 
(
	[ID]
)
)


  CREATE TABLE [ANALYSE_STATISTICS_CUSTOM]
(
  [ID]    [varchar](50) NOT NULL ,
  [FID]   [varchar](50) NULL,
  [GFIELD] [varchar](100) NULL,
   CONSTRAINT [PK_ANALYSE_STATISTICS_CUSTOM] PRIMARY KEY CLUSTERED 
(
	[ID]
)
)




CREATE TABLE [ANALYSE_STATISTICS_CFIELD]
(
  [ID]              [varchar](50) NOT NULL,
  [FID]             [varchar](50) NULL,
  [SFIELDNAME]      [varchar](100) NULL,
  [SFIELDSHOWNAME]  [varchar](100) NULL,
  [EXPRESSIONS]     [varchar](3000) NULL,
  [DISTINCTION] [numeric](38, 0) NULL,
  [ISSHOW]          [char](1) NULL,
  [SAVEFIELD]       [varchar](50) NULL,
  [EXPRESSIONSWHERE] [varchar](4000) NULL,
  [ADDSIGN]         [varchar](50) NULL,
  [RADIXPOINT]       [numeric](38, 0) NULL,
  [SHOWCODE]        [varchar](50) NULL,
  [TABLEID]         [varchar](50) NULL,
  [CPLANARFIELD]    [varchar](50) NULL,
  [CJOIN]           [char](1) NULL,
  [CPLANARESPECIAL] [varchar](100) NULL,
   CONSTRAINT [PK_ANALYSE_STATISTICS_CFIELD] PRIMARY KEY CLUSTERED 
(
	[ID]
)
)


  CREATE TABLE [ANALYSE_STATISTICS_CCONNECTION]
(
     [ID] [varchar](50)  NOT NULL,
	[FID] [varchar](50)  NULL,
	[MFIELD] [varchar](50)  NULL,
	[CFIELD] [varchar](50)  NULL,
	[JOINTYPE] [char](1)  NULL,
   CONSTRAINT [PK_ANALYSE_STATISTICS_CCONNECTION] PRIMARY KEY CLUSTERED 
(
	[ID]
)
)


